powered by
Get column names that match a pattern. Author: Scott Sobel. Tech review: Bryce Chamberlain.
namesx(df, char, fixed = TRUE, ignore.case = TRUE)
Vector of matched names.
Object with names you'd like to search.
Regex chracter to match to columns.
Match as a string, not a regular expression.
Ignore case in matches.
namesx( iris,'len' ) namesx( iris,'Len' )
Run the code above in your browser using DataLab