Description Usage Arguments Value Examples
View source: R/get_matching_column_names.R
Matching columns are columns whose names start with the given pattern and end with an incrementing integer.
1 |
df |
The dataframe from which to extract columns |
pattern |
The prefix of the column names to extract (string) |
A vector of strings that match the pattern
1 2 3 | data <- data.frame(week_payment1 = c(1, 2, 3), week_payment2 = c(1, 2, 3),
week_payment3 = c(1, 2, 3), othercolumn = c(5, 6, 7))
get_matching_column_names(data, "week_payment")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.