list.do: Call a function with a list of arguments

View source: R/list.do.R

list.doR Documentation

Call a function with a list of arguments

Description

Call a function with a list of arguments

Usage

list.do(.data, fun, ...)

Arguments

.data

list. vector will be coreced to list before being passed to fun.

fun

The function to call

...

The additional parameters passed to do.call

Examples

x <- lapply(1:3, function(i) { c(a=i,b=i^2)})
df <- lapply(1:3, function(i) { data.frame(a=i,b=i^2,c=letters[i])})
list.do(x, rbind)

renkun-ken/rlist documentation built on March 16, 2023, 8:25 p.m.