Learn R Programming

nlist (version 0.4.0)

nterms.nlist: Number of Terms

Description

Gets the number of terms of an MCMC object.

Usage

# S3 method for nlist
nterms(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
nterms(nlist(x = 2))
nterms(nlist(x = NA_real_))
nterms(nlist(x = 3, zz = matrix(2:5, 2)))

Run the code above in your browser using DataLab