map: map combinator

Description Usage Arguments Value Examples

View source: R/functional.R

Description

map combinator

Usage

1
map(x, f)

Arguments

x

vector to which apply

f

function (or lambda expression) for mapping

Value

vector with applyed function

Examples

1
2
map(c(1, 2, 3, 4), (~ x^2))
# c(1, 4, 9, 16)

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