dft: Create a data.frame table (dft)

Description Usage Arguments Value Examples

View source: R/dft.R

Description

Create a descriptive frequencies table with descriptive statistics by group.

Usage

1
2
dft(data1, prop = TRUE, perc = TRUE, by = NULL, neat = TRUE,
  digits = 2)

Arguments

data1

a vector or data.frame column

prop

logical, if TRUE returns an additional proportion column

perc

logical, if TRUE returns an additional percentage column

by

numeric variable to return descriptive statistics for

neat

logical, if TRUE returns a tailored dataset

digits

integer, number of digits to round to

Value

a data.frame table with optional proportion, percentage, and descriptive statistics columns

Examples

1
2
dft(iris2$Species)
dft(iris2$Species, by = iris2$Sepal.Length)

dtables documentation built on May 1, 2019, 6:48 p.m.