table_of_counts: Table showing counts for one or more categorical variables.

Description Usage Arguments Value Examples

Description

Table showing counts for one or more categorical variables.

Table showing counts for one or more categorical variables.

Usage

1
2
3

Arguments

data

A data frame

group

An optional grouping variable.

data

A data frame

group

An optional grouping variable.

Value

A flextable with descriptive statistics (N, percent, range) for all variables in the supplied data.frame.

A flextable with descriptive statistics (N, percent, range) for all variables in the supplied data.frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
    data(mtcars)
    mtcars %>%
      select(cyl, vs) %>%
      table_of_counts()
      
    mtcars %>%
      select(cyl, vs, am) %>%
      table_of_counts(cyl)

    data(mtcars)
    mtcars %>%
      select(cyl, vs) %>%
      table_of_counts()
      
    mtcars %>%
      select(cyl, vs, am) %>%
      table_of_counts(cyl)

ewancarr/report-tools documentation built on May 10, 2019, 10:01 a.m.