Apply each of the functions in funs
to the column
col
in the grouped data frame x
. Each of the functions in
funs
must accept a single vector as input and output
a data frame.
extract_features(x, col, funs)
x | A grouped data frame with column |
---|---|
col | The name of the column in |
funs | A list of functions that each accept a single vector as input. |
a data frame with the original grouped columns and other feature columns.