Description Usage Arguments Value Author(s) References Examples
These functions return the indices of row names in a data frame
or a vector of names. whichNames
is just an alias for which.names
.
1 2 | which.names(names, object)
whichNames(...)
|
names |
a name or character vector of names. |
object |
a data frame or character vector of (row) names. |
... |
arguments to be passed to |
Returns the index or indices of names
within object
.
John Fox jfox@mcmaster.ca
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
1 2 | which.names(c('minister', 'conductor'), Duncan)
## [1] 6 16
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.