grepColEntries {rrMisc} | R Documentation |
Get a subset of a data.frame with specified string in a given column.
grepColEntries(d.frame, col.name, part.name, ...)
d.frame |
data.frame |
col.name |
Name of column |
part.name |
Search string in column names |
... |
Arguments passed to further functions |
Unlike subset which works with '==' or '%in%', here search is performed using grep() in a fashion of 'like', meaning substrings are recognized.
Subset of data.frame for which selection conditions are met.
under continuous developement
Roland Rapold
none
grepColNames
grepColNA
grepObjNames
grepNotCompleteEntries
grepMultipleEntries
grepRowNames
grepColNegNum
grepColFactors
if(require("MASS")) { data(crabs, package="MASS") print(head(grepColEntries(crabs, "sex", "M"))) print(head(grepColEntries(crabs, "index", "2"))) }