namesx | R Documentation |
Get column names that match a pattern. Author: Scott Sobel. Tech review: Bryce Chamberlain.
namesx(df, char, fixed = TRUE, ignore.case = TRUE)
df |
Object with names you'd like to search. |
char |
Regex chracter to match to columns. |
fixed |
Match as a string, not a regular expression. |
ignore.case |
Ignore case in matches. |
Vector of matched names.
namesx( iris,'len' )
namesx( iris,'Len' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.