The resulting tibble will have an additional column group

partition_to_frame(l)

Arguments

A

partition, i.e. list of vectors, where each vector contains all individuals in the corresponding group

Value

frame The frame with `id` and `group` columns to convert

Examples

round1 <- list(c("id02", "id03", "id04"), c("id05", "id01")) socialroulette::partition_to_frame(round1)
#> # A tibble: 5 x 2 #> id group #> <chr> <int> #> 1 id02 1 #> 2 id03 1 #> 3 id04 1 #> 4 id05 2 #> 5 id01 2