convert_to_onehot: Break down a List from a Checkbox Field to Onehot-Coded...

View source: R/simplify_utilities.R

convert_to_onehotR Documentation

Break down a List from a Checkbox Field to Onehot-Coded Values

Description

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

  • This function is used by: simplify_idaifield()

  • Needs output of: get_field_inputtypes()

Examples

## Not run: 
...

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.