Learn R Programming

rlist (version 0.4.6.2)

list.do: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab