View source: R/simplify_utilities.R
convert_to_onehot | R Documentation |
This function is a helper function to
simplify_idaifield()
that takes a list from one of the
fields marked in the config as containing checkboxes and converts
the list to onehot-coded values.
convert_to_onehot(resource, fieldtypes)
resource |
The resource to process (from an |
fieldtypes |
A matrix of fields with the given inputType as
returned by |
The resource object with the values of checkboxes separated into one-hot-coded versions.
This function is used by: simplify_idaifield()
Needs output of: get_field_inputtypes()
## Not run:
...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.