Return indices corresponding to variable names
variable_index(x, names)
x
names
Hadley Wickham <h.wickham@gmail.com>