Learn R Programming

universals (version 0.0.1)

set_pars: Set Parameters

Description

Sets an object's parameter names.

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

Usage

set_pars(x, value, ...)

pars(x) <- value

Arguments

x

An object.

value

A character vector of the new parameter names.

...

Other arguments passed to methods.

Value

The modified object.

Details

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

See Also

Other parameters: npars(), pars()

Examples

Run this code
# NOT RUN {
set_pars.foobar <- function(x, ...) {
  NotYetImplemented()
  # replace with code to set_pars for an object of class 'foobar'
}
# }

Run the code above in your browser using DataLab