dot-process_nested_list_as_df: Convert Nested Lists to Column

.process_nested_list_as_dfR 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

(data.frame)
result data frame

arg

(list)
the nested list

new_column

(string)
new column name

unlist

(logical)
whether to fully unlist final results

Value

a data frame

Examples

ard <- ard_categorical(cards::ADSL, by = "ARM", variables = "AGEGR1")

cardx:::.process_nested_list_as_df(ard, NULL, "new_col")

cardx documentation built on Sept. 11, 2024, 9:12 p.m.