Description Usage Arguments Details Value Note Author(s) References See Also Examples
Get a subset of a data.frame with specified string in a given column.
1 | 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
1 2 3 4 5 6 | if(require("MASS"))
{
data(crabs, package="MASS")
print(head(grepColEntries(crabs, "sex", "M")))
print(head(grepColEntries(crabs, "index", "2")))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.