Learn R Programming

rv (version 1.0)

cbind.rv: Combine random vectors by columns or rows

Description

Combines random vectors by columns (cbind.rv) or rows (rbind.rv).

Usage

## S3 method for class 'rv':
cbind(\dots, deparse.level = 1)
 ## S3 method for class 'rv':
rbind(\dots, deparse.level = 1)

Arguments

...
vectors or matrices, can be rv objects
deparse.level
(passed on to cbind)

Details

See cbind and rbind for details.

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").

Examples

Run this code
x <- rvnorm(10)
  y <- rvnorm(10)
  cbind(x,y)
  rbind(x,y)

Run the code above in your browser using DataLab