tableF: Frequency Table

Description Usage Arguments Value Examples

View source: R/tableF.R

Description

Provides in-depth frequency counts and percentages.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## 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 documentation built on Feb. 22, 2021, 9:08 a.m.