Learn R Programming

nlist (version 0.1.1)

nsams: Number of MCMC Samples

Description

Gets the number of MCMC samples (simulations * terms)

Usage

nsams(x, ...)

# S3 method for default nsams(x, ...)

Arguments

x

The R object.

...

Unused.

Value

A count of the total number of sample values.

Methods (by class)

  • default: Number of sample values of default object

See Also

nsims() and nterms()

Examples

Run this code
# NOT RUN {
nsams(nlist(x = 2))
nsams(nlist(x = 1:2))
nsams(nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7))))
# }

Run the code above in your browser using DataLab