Gets the number of terms of an MCMC object.
# S3 method for class 'term_rcrd'
nterms(x, ...)
A integer scalar of the number of terms.
nterms(as_term_rcrd(term("alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]")))
#> [1] 4
nterms(as_term_rcrd(term("alpha[1]", "alpha[1]", "beta[1,1]", "beta[1,1]")))
#> [1] 4