Select columns from an ACS data frame using dplyr::select()
Source: R/select_acs_cols.R
select_acs_cols.Rd
select_acs_cols()
is a wrapper for dplyr::select()
designed to select the
appropriate columns for a gt table created with gt_acs()
. Set any named
parameter to NULL
to drop the respective column or use the additional ...
parameter to modify the selection.
Arguments
- data
Input data table
obj:<data.frame>|obj:<tbl_df>
// requiredA
data.frame
object or a tibble (tbl_df
).- ...
Additional parameters passed to
dplyr::select()
- name_col, column_title_col, value_cols, perc_value_cols
ACS data column names to select using
tidyselect::any_of()
. Set any parameter toNULL
to avoid selecting columns.- denominator_start
Passed to
starts_with()
to drop denominator columns. Defaults to "denominator"- keep_denominator
If
FALSE
(default), drop all columns that start with the text from denominator_start