rep.rv {rv} | R Documentation |
Transpose a random array by permuting its dimensions and optionally resizing it.
## S3 method for class 'rv': rep(x, times, ...)
x |
a random vector to be replicated |
times |
number of replications |
... |
further arguments passed to rep |
This is the rv-compatible version of the function rep
.
Since rep
is not a generic function,
the whole name rep.rv
must be specified when calling the function
when x
is an 'rv' object.
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
print(rep(rvnorm(1), times=4))