align_lists: Combine multiple lists into one list by aligning each item

Description Usage Arguments Value Examples

View source: R/5_parallel.R

Description

The generic parallel function par_lapply() can only apply a function with single parameter to a list. Thus function with multiple parameters need to be wrapped into a function with single parameter list.

Usage

1

Arguments

...

multiple lists with same length, to be combined into a master list with item from each list aligned

Value

A list of same length of each input list, and each input parameter should have same length. Each item in result is a list of each ith item in input lists.

Examples

1
align_lists(letters[1:3], 1:3, rep_len(FALSE, length.out = 3))

francocarol/shiny_ctmm documentation built on March 17, 2020, 12:11 a.m.