Takes a list of column names and creates them. Optionally uses a template to
copy across factor/character mappings.
Usage
define(.self, ...)
define_(.self, ..., .dots)
Arguments
.self
Data frame
...
Additional parameters
.dots
Workaround for non-standard evaluation
Value
Data frame
Details
This function is used to create new columns in a data frame. Specifying
just the name will create a new numeric column. If specified in the form
of var=template, then a new column named var will be
created using template as a template. This is useful for creating
new factors.