Set of functions to supplement the tidyselect set of functions for selecting columns of data frames. all_continuous(), all_continuous2(), all_categorical(), and all_dichotomous() may only be used with tbl_summary(), where each variable has been classified into one of these three groups. All other helpers are available throughout the package.

all_continuous(continuous2 = TRUE)

all_continuous2()

all_categorical(dichotomous = TRUE)

all_dichotomous()

all_numeric()

all_character()

all_integer()

all_double()

all_logical()

all_factor()

Arguments

continuous2

Logical indicating whether to include continuous2 variables. Default is TRUE

dichotomous

Logical indicating whether to include dichotomous variables. Default is TRUE

Value

A character vector of column names selected

Examples

select_ex1 <- trial %>% select(age, response, grade) %>% tbl_summary( statistic = all_continuous() ~ "{mean} ({sd})", type = all_dichotomous() ~ "categorical" )