rep.rv: Replicate Elements of Random Vectors

Description Usage Arguments Details Author(s) References See Also Examples

Description

Transpose a random array by permuting its dimensions and optionally resizing it.

Usage

1
2
## S3 method for class 'rv'
rep(x, times, ...)

Arguments

x

a random vector to be replicated

times

number of replications

...

further arguments passed to rep

Details

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.

Author(s)

Jouni Kerman jouni@kerman.com

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

See Also

rep

Examples

1
  print(rep(rvnorm(1), times=4))

jsta/rv documentation built on Feb. 12, 2022, 5:13 p.m.