.process_nested_list_as_df {cardx} | R Documentation |
Convert Nested Lists to Column
Description
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.
Usage
.process_nested_list_as_df(x, arg, new_column, unlist = FALSE)
Arguments
x |
( |
arg |
( |
new_column |
( |
unlist |
( |
Value
a data frame
Examples
ard <- ard_categorical(cards::ADSL, by = "ARM", variables = "AGEGR1")
cardx:::.process_nested_list_as_df(ard, NULL, "new_col")
[Package cardx version 0.2.5 Index]