find_cols | R Documentation |
Find columns in a data frame by regular expression
find_cols(df, ..., value = TRUE, ignore.case = TRUE)
df |
A data frame |
... |
Keys to search for. Regular expressions must be qutoed. |
value |
Should the column names or positions be returned? |
ignore.case |
Should case be ignored in regular expression matching? |
This is mostly for interactive use
Sven Halvorson
find_cols(mtcars, ar, pg)
find_cols(mtcars, '^a')
find_cols(mtcars, 'ar', value = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.