This function is an internal, helper function used by ana_fn functions
to combine p-values (and other group statistics) across several variables.
Arguments
- list
Named list of data.frames
- index
Variable name to store data.frame names
- value
Variable name(s) for value(s) stored in each data.frame (in ana_fn functions, typically a p-value)
Details
This function uses base::rbind() to combine the data.frames in list,
which requires the data.frames to have the same number of columns.
Examples
l <- list(
Gender=data.frame(p=.964),
Nationality=data.frame(p=.009)
)
l |> make_df_from_named_list()
#> Var Value1
#> 1 Gender 0.964
#> 2 Nationality 0.009