Gets the parameter names.

# Default S3 method
pars(x, scalar = NULL, ...)

Arguments

x

An object.

scalar

A flag specifying whether to by default return all parameters (NULL), or only scalar parameters (TRUE) or only non-scalar parameters (FALSE).

...

Other arguments passed to methods.

Value

A character vector of the names of the parameters.

See also

Examples

pars(matrix(1:4, nrow = 2))
#> [1] "par"