powered by
which.names(names, object)
names
object
data(Duncan) which.names(c('minister', 'conductor'), Duncan) ## [1] 6 16
Run the code above in your browser using DataLab