nsims {rv} | R Documentation |
nsims
returns the number of simulations
stored in each component of its argument.
nsims(x)
x |
an rv object |
If the argument is a number, nsims
returns 1.
A vector of integers.
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.
# nsims(1.23) x <- rvnorm(1) nsims(x) nsims(x)==nrow(sims(x)) # Should be TRUE nsims(x)==rvnsims() # Should be TRUE