Helper function to get the vector or column form df. If vector is passed it returns it. If name of column is passed, it returns the column as a vector.

get_vector(df, vec)

Arguments

df

data frame with a column

vec

name of the column in df or vector of values

Value

vector