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

View source: R/5_parallel.R

align_listsR Documentation

Combine multiple lists into one list by aligning each item

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

align_lists(...)

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

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


ctmm-initiative/ctmm-webapp documentation built on Aug. 21, 2023, 4:39 a.m.