Description Usage Arguments Value Examples
Find names in dataframe matching regex pattern
1 | matchNames(.data, pattern, ignore.case = TRUE)
|
.data |
The data frame to search. |
pattern |
The regex pattern to match against variable names in |
Character vector of variable names in .data
matching regex pattern
.
1 2 3 | d = data.frame(x1 = runif(10), y2 = runif(10))
matchNames(d, "x")
d[matchNames(d, "x")]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.