[r] Get column index from label in a data frame