Skip to contents

This function converts all checkboxes fields (except the ones listed in the except-param) into "one-hot" coded list items.

Usage

convert_to_onehot(resource, inputtypes, except = NULL)

Arguments

resource

The resource to process (from an idaifield_resources-list).

inputtypes

A matrix of fields with the given inputType as returned by parse_field_inputtypes()

except

A vector of fieldnames that should be ignored.

Value

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

See also

Examples

if (FALSE) { # \dontrun{
...
} # }