npars: Number of Parameters

View source: R/npars.R

nparsR Documentation

Number of Parameters

Description

Gets the number of parameters of an object.

The default methods returns the length of pars() if none are NA, otherwise it returns NA.

Usage

npars(x, ...)

## Default S3 method:
npars(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

An integer scalar of the number of parameters.

See Also

pars()

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

Other parameters: pars(), set_pars()


universals documentation built on Sept. 22, 2022, 5:07 p.m.