post_reduce_cols | R Documentation |
User-friendly wrapper to choose demographics and selected
outcome variables from ACE/SEA data processed with proc_by_module
.
post_reduce_cols(
df,
demo_names = c("pid", "age", "grade", "gender"),
metric_names = c(),
metric_names_exclude = c()
)
df |
a df, output by |
demo_names |
a character vector containing the names of demographic columns to include in the output. Column names will be matched exactly. |
metric_names |
a character vector containing partial names of metric columns to include in the output. All column names containing any of the inputs will be included in output. |
metric_names_exclude |
a character vector containing partial names of metric
columns to exclude from the output. All column names containing any of the
inputs will be excluded from output. This argument supersedes the prior, so any
columns matching both a partial name from |
a df, similar in structure to proc
, but containing only the
subsetted columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.