set_pars.term: Set Parameter Names

View source: R/set-pars.R

set_pars.termR Documentation

Set Parameter Names

Description

Sets an object's parameter names.

The assignment version pars<-() forwards to set_pars().

Usage

## S3 method for class 'term'
set_pars(x, value, ...)

Arguments

x

An object.

value

A character vector of the new parameter names.

...

Other arguments passed to methods.

Details

value must be a unique character vector of the same length as the object's parameters.

Value

The modified object.

See Also

Other parameters: npars(), pars()

Examples

term <- as_term(c("b[2]", "a[1]", "b[3,3]"))
set_pars(term, c("x", "y"))

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