nterms.nlists: Number of Terms

Description Usage Arguments Value See Also Examples

View source: R/nterms.R

Description

Gets the number of terms of an MCMC object.

Usage

1
2
## S3 method for class 'nlists'
nterms(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
3
4
5
nterms(nlists(nlist(x = 1:3)))
nterms(nlists(
  nlist(y = 3, zz = matrix(2:5, 2)),
  nlist(y = 5, zz = matrix(1:4, 2))
))

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