Skip to contents

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.

Usage

convert_to_onehot(resource, fieldtypes)

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()

Value

The resource object with the values of checkboxes separated into one-hot-coded versions.

See also

Examples

if (FALSE) {
...
}