rsapply: Recursive list apply

Description Usage Arguments Value Examples

Description

Given a bunch of vectors, creates lists of lists with the elements as keys and values determined by fn.

Usage

1
rsapply(..., fn)

Arguments

...

Vectors to loop over.

fn

Function to execute for each leaf.

Value

Lists of lists with the elements as keys and values determined by fn.

Examples

1
2
ShadowCAT:::rsapply(c('a', 'b'), c('f', 'g'), fn=function(x,y) c(x, y))
#> list(a=list(f=c('a', 'f'), g=c('a', 'g')), b=list(f=c('b', 'f'), g=c('b', 'g')))

Karel-Kroeze/ShadowCAT documentation built on May 7, 2019, 12:28 p.m.