powered by
Obtain the index of a column in a data frame (or a list), producing an error if there is a problem.
col_idx(name, df)
An integer giving the column index of the named column.
a character vector giving the names of the columns to look up.
a data.frame or a list object.
data.frame
list