insightsengineering / teal.transform

Reproducible transform and merge module for teal applications
https://insightsengineering.github.io/teal.transform/
Other
3 stars 2 forks source link

relabel columns which has been reshaped (spread) by factor level #39

Open cicdguy opened 3 years ago

cicdguy commented 3 years ago

This code in merge_datasets relabel only columns which are not spread (get_relabel_cols).

  anl_relabel_call <- get_anl_relabel_call(
    columns_source = get_relabel_cols(columns_source, dplyr_call_data), # don't relabel reshaped cols
    datasets = datasets,
    anl_name = anl_name
  )

For example AVAL_OS and AVAL_PFS should not be relabelled by column label but by factor level of variable which spreads data (eg PARAM). Optimally if possible should be in one rtables::relabel call but sepatate call also allowed.

Provenance:

Creator: gogonzo
donyunardi commented 2 years ago

Hi @gogonzo Should we add this item to the data merge roadmap insightsengineering/NEST-roadmap#36?