powered by
Some arguments, such as stat_label, are passed as nested lists. This function properly unnests these lists and adds them to the results data frame.
stat_label
.process_nested_list_as_df(x, arg, new_column, unlist = FALSE)
a data frame
(data.frame) result data frame
data.frame
(list) the nested list
list
(string) new column name
string
(logical) whether to fully unlist final results
logical
ard <- ard_categorical(ADSL, by = "ARM", variables = "AGEGR1") cards:::.process_nested_list_as_df(ard, NULL, "new_col")
Run the code above in your browser using DataLab