Learn R Programming

nlist (version 0.4.0)

niters.nlists: Number of Iterations

Description

Gets the number of iterations (in a chain) of an MCMC object.

Usage

# S3 method for nlists
niters(x, ...)

Value

An integer scalar of the number of iterations.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

Other MCMC dimensions: nchains(), npars(), nsams(), nsims(), nterms()

Examples

Run this code
niters(nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7))))

Run the code above in your browser using DataLab