Learn R Programming

nlist (version 0.5.0)

set_pars.mcmc.list: Set Parameters

Description

Sets an object's parameter names.

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

Usage

# S3 method for mcmc.list
set_pars(x, value, ...)

Value

The modified object.

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.

See Also

Other parameters: npars(), pars()

Examples

Run this code
set_pars(as_mcmc_list(nlist(x = 1, y = 3:4)), c("a", "b"))

Run the code above in your browser using DataLab