View source: R/helper_functions.R
mutate_actarm | R Documentation |
Refactor active arm
mutate_actarm(
df,
arm_var = "TRT01A",
levels = c("PLACEBO + PACLITAXEL + CISPLATIN",
"ATEZOLIZUMAB + TIRAGOLUMAB + PACLITAXEL + CISPLATIN"),
labels = c("Pbo+Pbo+PC", "Tira+Atezo+PC")
)
df |
Input dataframe |
arm_var |
Arm variable |
levels |
factor levels |
labels |
factor labels |
Dataframe with re-level and re-labelled arm variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.