whichNames

0th

Percentile

Position of Row Names

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 which.names.

Keywords
utilities
Usage
whichNames(names, object, ...)

which.names(names, object, ...)

# S3 method for data.frame whichNames(names, object, ...)

# S3 method for default whichNames(names, object, ...)

Arguments
names

a name or character vector of names.

object

a data frame or an object with a names attribute.

not used.

Value

Returns the index or indices of names in row names of the data frame or names of an object of another class.

References

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

Aliases
  • which.names
  • whichNames
  • whichNames.data.frame
  • whichNames.default
Examples
# NOT RUN {
whichNames(c('minister', 'conductor'), Duncan)
# }
Documentation reproduced from package car, version 3.0-3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.