Description Usage Arguments Details Value Note Author(s) References See Also Examples
Specify a character string and find the column names in a data.frame containing this character string.
1 | 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
1 2 3 4 5 6 7 | if(require("MASS"))
{
data(crabs, package="MASS")
head(crabs)
print(grepColNames(crabs, "W"))
print(grepColNames(crabs, "e"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.