Gets the number of terms of an MCMC object.

# S3 method for class 'nlist'
nchains(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

A integer scalar of the number of terms.

Details

Always 1L.

See also

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

Examples

nchains(nlist(x = 1:2))
#> [1] 1