nchains.nlists: Number of Terms

Description Usage Arguments Value See Also Examples

View source: R/nchains.R

Description

Gets the number of terms of an MCMC object.

Usage

1
2
## S3 method for class 'nlists'
nchains(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

A integer scalar of the number of terms.

See Also

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

Examples

1
2
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)))))

nlist documentation built on Sept. 5, 2021, 6:05 p.m.