setsnames-set: Set the names of the states.

Description Usage Arguments Value See Also Examples

Description

Sets the names of the states.

The length of the character vector must match the number of states of the model.

Usage

1
setsnames(x) <- value

Arguments

x

A HMM model.

value

A character vector with the names.

Value

Changes states names in the object x.

See Also

HMM

Examples

1
2
3
model <- HMM(3)
setsnames(model) <- c("a","b","c")
model$states$names

MobilePhoneESSnetBigData/destim documentation built on Dec. 7, 2020, 7:35 p.m.