get_vector {tidycharts} | R Documentation |
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.
Description
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.
Usage
get_vector(df, vec)
Arguments
df |
data frame with a column |
vec |
name of the column in df or vector of values |
Value
vector
[Package tidycharts version 0.1.3 Index]