grepRowNames {rrMisc} | R Documentation |
Specify a character string and find the row names in a data.frame containing this character string.
grepRowNames(d.frame, part.name, ...)
d.frame |
data.frame |
part.name |
Search string in row names |
... |
Arguments passed to further functions |
Unlike using '==' or '%in%', here search is performed using grep() in a fashion of 'like', meaning substrings are recognized.
Number and names of found row names.
under continuous developement
Roland Rapold
none
grepColEntries
grepColNames
grepColNA
grepObjNames
grepNotCompleteEntries
grepMultipleEntries
grepColNegNum
grepColFactors
if(require("MASS")) { data(crabs, package="MASS") head(crabs) rownames(crabs) <- paste0("row_", rownames(crabs)) print(grepRowNames(crabs, "16")) }