regex_select | R Documentation |
Subset columns using regular expression Subset columns from a data frame if column names match the regular pattern.
regex_select(prefix = NULL, suffix = NULL, regex = NULL, ..., byrow = FALSE)
prefix_with(data, chr = "", ..., byrow = FALSE)
suffix_with(data, chr = "", ..., byrow = FALSE)
contain_with(data, chr = "", ..., byrow = FALSE)
prefix |
prefix of column names. |
suffix |
suffix of column names. |
regex |
other string (or regular expression) in column names. |
... |
other parameters passing to |
byrow |
logical, if TRUE will select rows based on regex. |
data |
a data frame. |
chr |
a character used to match the column names. |
a data frame.
Hou yun
prefix_with(mtcars, "m")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.