Extract a subset of columns from a data.frame, while preserving the user defined attributes of the parent data.frame.
subsetColumnsZoon(df, columns)
df | The dataframe of which you'd like to subset columns from |
---|---|
columns | A vector of column names (character) of indices (numeric) which you'd like to keep |