View source: R/R04-Data_wrangling.R
camr_column | R Documentation |
A function that matches or excludes column names in a data frame based on user-supplied sub-strings.
camr_column(dtf, ...)
dtf |
A data frame. |
... |
Character strings with the sub-strings to match
(or exclude) against the column names in |
A vector of column names meeting the inclusion and exclusion criteria.
Kevin Potter
data( example_CAM_data_set )
# All variables containing 'SSS'
example_CAM_data_set |> camr_column( 'SSS' )
# All variables containing both 'SSS' and 'CHR'
example_CAM_data_set |> camr_column( 'SSS', 'CHR' )
# Variables containing 'SSS' but not 'CHR'
example_CAM_data_set |> camr_column( 'INV', '~INT' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.