Obtain the index of a column in a data frame (or a list), producing an error if there is a problem.
Useful links