Gets the parameter names.

# S3 method for class 'character'
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(c("a", "b[1]", "a[3]"))
#> [1] "a" "b"