Given a vector of strings and another reference vector,
get.cols will search the reference vector for
matches and return the column indices where each string
was located. See examples.
Usage
get.cols(string, names)
Arguments
string
the name of a variable (string)
names
the names of the variables for which you
wish to extract the column
Value
an integer corresponding to the column index(indices)