mapN: mapN combinator (apply map for each elements of subvectors...

Description Usage Arguments Value Examples

View source: R/functional.R

Description

mapN combinator (apply map for each elements of subvectors respectively)

Usage

1
mapN(x, f)

Arguments

x

list of vectos to which apply

f

function (or lambda expression) for mapping

Value

vector with applyed function

Examples

1
2
mapN(list(c(1, 2, 3), c(4, 5, 6), c(7, 8, 9)), (x ~ y ~ z ~ x + y + z))
# list(c(1, 4, 9), c(16, 25, 36), c(49, 64))

perfail-stud/Rstudfile documentation built on Dec. 22, 2021, 7:43 a.m.