An internal function to obtain column index by its name
get.column.index(x, col.name)
x
Dataset
col.name
Column name
column index(es) in the provided dataset