-
Notifications
You must be signed in to change notification settings - Fork 41
Description
The ability to change a variable to an ordinal factor is sorely missing in the current implementation of update tab of the datamods::import_server() module. This is not optional in the case of ordinal regression (i.e. ordinal target) or in the case of dummy encoding of ordinal predictors. Ordinal factors need to have a human-curated sequence of levels defined.
This would involve a sub-dialogue to determine the order of the factor levels. I think a selectize control (with multiple = true) would suffice in the short term but better dialogues can be imagined.
Ideally this would be a modal dialogue BUT this is problematic if the update process is already in a modal dialogue as would be the case with datamods::import_modal(). Some clever reuse of the existing modal dialogue would be required to emulate modal-within-modal. Alternatively the update-table could have an extra column for defining the ordinal sequence.
Either way this would be a welcome addition to the package.