Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tableF

Frequency Table


Description

Provides in-depth frequency counts and percentages.

Usage

tableF(.data, x, n = 20, splitby = NULL)

Arguments

.data

the data frame containing the variable

x

the bare variable name (not quoted)

n

the number of values shown int he table

splitby

the stratifying variable

Value

a list of class tableF containing the frequency table(s)

Examples

## Not run: 

library(furniture)

data <- data.frame(
  x = sample(c(1,2,3,4), 100, replace=TRUE),
  y = rnorm(100)
)

## Basic Use
tableF(data, x)
tableF(data, y)

## Adjust the number of items shown
tableF(data, y, n = 10)

## Add splitby
tableF(data, x, splitby = y)


## End(Not run)

furniture

Furniture for Quantitative Scientists

v1.9.10
GPL-3
Authors
Tyson S. Barrett [aut, cre] (<https://orcid.org/0000-0002-2137-1391>), Emily Brignone [aut], Daniel J. Laxman [aut]
Initial release
2021-02-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.