Learn R Programming

mcmcsae (version 0.7.4)

labels: Get and set the variable labels of a draws component object for a vector-valued parameter

Description

Get and set the variable labels of a draws component object for a vector-valued parameter

Usage

# S3 method for dc
labels(object, ...)

labels(object) <- value

Value

The extractor function returns the variable labels.

Arguments

object

a draws component object.

...

currently not used.

value

a vector of labels.

Examples

Run this code
# \donttest{
ex <- mcmcsae_example()
sampler <- create_sampler(ex$model, data=ex$dat)
sim <- MCMCsim(sampler, burnin=50, n.iter=100, n.chain=1, store.all=TRUE)
labels(sim$beta)
labels(sim$v)
labels(sim$beta) <- c("a", "b")
labels(sim$beta)
# }

Run the code above in your browser using DataLab