which.names

0th

Percentile

Position of Row Names

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.

Keywords
utilities
Usage
which.names(names, object)
whichNames(...)
Arguments
names
a name or character vector of names.
object
a data frame or character vector of (row) names.
...
arguments to be passed to which.names.
Value

  • Returns the index or indices of names within object.

References

Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.

Aliases
  • which.names
  • whichNames
Examples
which.names(c('minister', 'conductor'), Duncan)
## [1]  6 16
Documentation reproduced from package car, version 2.0-11, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.