Closed bzkrouse closed 2 months ago
In the following example, if we make RACE a factor and then perform shuffle_ard(), it is correctly coerced to character (to be stacked up with ETHNIC) but the values are incorrect (1,2,3... instead of the factor levels).
shuffle_ard()
adsl_ <- ADSL |> dplyr::mutate(RACE = factor(RACE)) ard_categorical( data = adsl_, by = TRT01A, variables = c(RACE, ETHNIC) ) |> shuffle_ard()
In the following example, if we make RACE a factor and then perform
shuffle_ard()
, it is correctly coerced to character (to be stacked up with ETHNIC) but the values are incorrect (1,2,3... instead of the factor levels).