View source: R/Utility-Functions.R
StackPrefixedCols | R Documentation |
Takes columns from data with specified prefixes and stacks them based on the unprefixed portion of the name. Columns not containing one of the prefixes are excluded in returned data.
StackPrefixedCols(data, prefixes)
data |
dataframe - contains data to stack |
prefixes |
string vector - list of prefixes to include in column selection and stacking |
tibble with superset of columns without prefixes in column names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.