lapply.subset.append.lol.args: Apply lapply.subset.append to each element of lol, using the...

View source: R/ListUtil.r

lapply.subset.append.lol.argsR Documentation

Apply lapply.subset.append to each element of lol, using the arguments from the parallel list lol.args and the function .FUN.

Description

Apply lapply.subset.append to each element of lol, using the arguments from the parallel list lol.args and the function .FUN.

Usage

lapply.subset.append.lol.args(
  X,
  lol,
  lol.args = attr(lol, "args.list"),
  simplify = TRUE,
  .FUN
)

Arguments

X

vector, list or dataframe on which to execute .FUN

lol

a list of lists containing matrix elements

lol.args

For each list in lol, there is a set of arguments that are supplied to .FUN. Each matrix in the list will use the arguments from its corresponding lol.args list. e.g: .FUN will be called on matrices in lol[[1]] with arguments supplied in lol.args[[1]] Defaults to a "args.list" attribute on lol.

simplify

if TRUE, then results will be added to the Z dimension of the matrix elements in lol. If FALSE, then results will be added as a extra list element to each matrix elements of lol

.FUN

.FUN to execute over elements of X


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.