nterms.term_rcrd: Number of Terms of a Term Record

View source: R/nterms.R

nterms.term_rcrdR Documentation

Number of Terms of a Term Record

Description

Gets the number of terms of an MCMC object.

Usage

## S3 method for class 'term_rcrd'
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

nterms(as_term_rcrd(term("alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]")))
nterms(as_term_rcrd(term("alpha[1]", "alpha[1]", "beta[1,1]", "beta[1,1]")))

term documentation built on Sept. 29, 2022, 5:14 p.m.