Learn R Programming

nlist (version 0.4.0)

nchains.nlists: Number of Terms

Description

Gets the number of terms of an MCMC object.

Usage

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

Value

A integer scalar of the number of terms.

Arguments

x

An object.

...

Other arguments passed to methods.

See Also

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

Examples

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

Run the code above in your browser using DataLab