Skip to content

Cannot currently update a variable's class to "ordinal" #96

Description

@nhward

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions