Break down a List from a Checkbox Field to Onehot-Coded Values
Source:R/simplify_utilities.R
convert_to_onehot.RdThis 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.
Arguments
- resource
The resource to process (from an
idaifield_resources-list).- fieldtypes
A matrix of fields with the given inputType as returned by
get_field_inputtypes()
See also
This function is used by:
simplify_idaifield()Needs output of:
get_field_inputtypes()