powered by
Make a list of assignments, applying each function to each column named. Intended to be used as an argument in extend_se() or project_se().
extend_se()
project_se()
make_assignments(columns, funs, ..., sep = "_", prefix = TRUE)
character, vector of column names to take values from.
character, names of functions to apply.
not used, forced later parameters to bind by name
character, naming separator
logical, if TRUE place function names prior, else after in results.
assignments <- make_assignments(c('x', 'y'), c('mean', med = 'median')) print(assignments) ops <- mk_td('d', c('x', 'y')) %.>% project_se(., assignments) cat(format(ops))
Run the code above in your browser using DataLab