grepColNames {rrMisc} | R Documentation |
Specify a character string and find the column names in a data.frame containing this character string.
grepColNames(d.frame, part.name, sort.col = "nr", ...)
d.frame |
data.frame |
part.name |
Search string in column names |
sort.col |
specify output column to sort by |
... |
Arguments passed to further functions |
Unlike using '==' or '%in%', here search is performed using grep() in a fashion of 'like', meaning substrings are recognized.
grepColNames() returns the found column names and details
under continuous developement
Roland Rapold
none
grepColEntries
grepColNA
grepObjNames
grepNotCompleteEntries
grepMultipleEntries
grepRowNames
grepColNegNum
grepColFactors
if(require("MASS")) { data(crabs, package="MASS") head(crabs) print(grepColNames(crabs, "W")) print(grepColNames(crabs, "e")) }