reorder_column_modalities: Reorders the modalities inside columns of a dataset

Description Usage Arguments Details Value Author(s)

Description

The user, or the automatic fixing process, might lead to situations where a pdi has for variable "b=1,a=2" whilst the order is "a=2,b=1" in other datasets. As all the solving process relies on the hypothesis the order is OK, checking of such a dataset would fail.

Usage

1
reorder_column_modalities(dataset, expected_order)

Arguments

dataset

a dataset containing a dataframe

expected_order

a list of strings corresponding to the modalities names

Details

This function helps fixing these situations by just changing the order of modalities inside each column name

Value

the same dataset with different names for the same data

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.