Skip to contents

Stack per-branch data frames from a cohort run into one table

Usage

pp_bind_cohort(branches, id = NULL)

Arguments

branches

A list of per-record data frames (dynamic-branch output).

id

Optional vector of record ids, added as a record column.

Value

A single row-bound data frame.

Examples

branches <- list(
  data.frame(sdnn = 50),
  data.frame(sdnn = 61)
)
pp_bind_cohort(branches, id = c("rec100", "rec101"))
#>   sdnn record
#> 1   50 rec100
#> 2   61 rec101