Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (38 sloc) 1.111 kb
\title{Replicate expression and return results in a data frame.}
rdply(.n, .expr, .progress = "none")
\item{.n}{number of times to evaluate the expression}
\item{.expr}{expression to evaluate}
\item{.progress}{name of the progress bar to use, see
a data frame
Evalulate expression n times then combine results into a
data frame
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 (\code{data.frame()}). This
function is equivalent to \code{\link{replicate}}, but
will always return results as a data frame.
rdply(20, mean(runif(100)))
rdply(20, each(mean, var)(runif(100)))
rdply(20, data.frame(x = runif(2)))
Hadley Wickham (2011). The Split-Apply-Combine Strategy
for Data Analysis. Journal of Statistical Software,
40(1), 1-29. \url{}.
Jump to Line
Something went wrong with that request. Please try again.