f_lapply: Apply function to list of items

View source: R/f - lapply.R

f_lapplyR Documentation

Apply function to list of items

Description

Applies function to list of items.

Usage

f_lapply(l.input, f.input, mc.cores = NULL)

Arguments

l.input

List of items.

f.input

Function to apply to each item.

mc.cores

Number of cores (default: NULL)

Details

-

Value

List of items that have been processed with said function.

Author(s)

Pieter Overdevest

Examples

l.output <- f_lapply(

     l.input  = list(1, 2, 3),
     f.input  = function(x) {x+2},
     mc.cores = NULL
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.