powered by
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.
whichNames
which.names
which.names(names, object) whichNames(...)
a name or character vector of names.
a data frame or character vector of (row) names.
arguments to be passed to which.names.
Returns the index or indices of names within object.
names
object
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
# NOT RUN { which.names(c('minister', 'conductor'), Duncan) ## [1] 6 16 # }
Run the code above in your browser using DataLab