Description Usage Arguments Value
Function to find column names in a dataframe that contain a given substring. If no column headings are given then return all columns in dataframe.
1 | FindColNames(df, col.match = "all", preserve.case = TRUE)
|
df |
Dataframe to be interrogated |
col_match |
Vector of strings or substrings (single character string is also ok) to be searched for in dataframe column headings. Default is "all" in which case all column headings are returned. |
preserve_case |
Boolean. If TRUE (default) then match case, if FALSE then ignore string case when matching. |
Vector of column headings that match the col_match substrings. If no matches are found then returns empty vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.