powered by
data.frame
Grep for column names from a data.frame
grepdf(pattern, x, ..., ignore.case = FALSE, perl = FALSE, value = FALSE, fixed = FALSE, useBytes = FALSE, invert = FALSE)
passed to grep
grep
data.frame to work with
force later arguments to be passed by name
column names of x matching grep condition.
# NOT RUN { d <- data.frame(xa=1, yb=2) # starts with grepdf('^x', d) # ends with grepdf('b$', d) # }
Run the code above in your browser using DataLab