These functions return the indices of the supplied row names of a data frame
or names of another object, such as a vector or list.
whichNames is just an alias for
whichNames(names, object, ...) which.names(names, object, ...) ## S3 method for class 'data.frame' whichNames(names, object, ...) ## Default S3 method: whichNames(names, object, ...)
a name or character vector of names.
a data frame or an object with a names attribute.
Returns the index or indices of
names in row names of the data frame or names of an object of another class.
John Fox firstname.lastname@example.org
Fox, J. and Weisberg, S. (2019) An R Companion to Applied Regression, Third Edition, Sage.
whichNames(c('minister', 'conductor'), Duncan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.