Set of functions to supplement the tidyselect set of functions for selecting columns of data frames (and other items as well).
all_continuous() selects continuous variables
all_continuous2() selects only type
all_categorical() selects categorical (including
all_dichotomous() selects only type
all_tests() selects variables by the name of the test performed
all_stat_cols() selects columns from
tbl_svysummary object with summary statistics (i.e.
all_interaction() selects interaction terms from a regression model
all_intercepts() selects intercept terms from a regression model
all_contrasts() selects variables in regression model based on their type of contrast
all_continuous(continuous2 = TRUE) all_continuous2() all_categorical(dichotomous = TRUE) all_dichotomous() all_tests(tests = NULL) all_stat_cols(stat_0 = TRUE) all_interaction() all_intercepts() all_contrasts(contrasts_type = NULL)
Logical indicating whether to include continuous2 variables. Default is
Logical indicating whether to include dichotomous variables.
string indicating the test type of the variables to select, e.g.
select all variables being compared with
FALSE, will not select the
"stat_0" column. Default is
type of contrast to select. When
NULL, all variables with a
contrast will be selected. Default is
NULL. Select among contrast types
c("treatment", "sum", "poly", "helmert", "other")
A character vector of column names selected
Review list, formula, and selector syntax used throughout gtsummary