list.do {rlist}R 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)

[Package rlist version 0.4.6.2 Index]