element_wise_expand_lists: element_wise_expand_lists

Description Usage Arguments Value Examples

Description

expand two lists into a dataframe. l1 and l2 can be a nested list.

Usage

1

Arguments

l1

first list

l2

second list

Value

data.frame with two columns, Var1 and Var2.

Examples

1
2
3
4
5
6
7
l1 <- list(1, 2, 3, 4)
l2 <- list(1, 2, 3, 4)
element_wise_expand_lists(l1, l2)

l1 <- list(1, 2, 3, 4)
l2 <- list(1, 2, 3, c(1, 3))
element_wise_expand_lists(l1, l2)

dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.