which.names {car} | R Documentation |
This function returns the indices of row names in a data frame or a vector of names.
which.names(names, object)
names |
a name or character vector of names. |
object |
a data frame or character vector of (row) names. |
Returns the index or indices of names
within object
.
John Fox jfox@mcmaster.ca
which.names(c('minister', 'conductor'), Duncan) ## [1] 6 16