rdply {plyr} | R Documentation |
Evalulate expression n times then combine results into a data frame
rdply(.n, .expr, .progress = "none")
.n |
number of times to evaluate the expression |
.expr |
expression to evaluate |
.progress |
name of the progress bar to use, see create_progress_bar |
This function runs an expression multiple times, and combines the
result into a data frame. If there are no results, then this function
returns a data frame with zero rows and columns (data.frame()
).
This function is equivalent to replicate
, but will always
return results as a data frame.
a data frame
Hadley Wickham <h.wickham@gmail.com>
rdply(20, mean(runif(100))) rdply(20, each(mean, var)(runif(100))) rdply(20, data.frame(x = runif(2)))