Learn R Programming

momentuHMM (version 1.5.5)

setStateNames: Set stateNames for a momentuHMM, miHMM, HMMfits, or miSum object

Description

Set stateNames for a momentuHMM, miHMM, HMMfits, or miSum object

Usage

setStateNames(model, stateNames)

Value

model object with new stateNames field

Arguments

model

momentuHMM, miHMM, HMMfits, or miSum object

stateNames

Character string providing state names for the model. See fitHMM and MIfitHMM.

Examples

Run this code
m <- example$m
mName <- setStateNames(m, stateNames=c("encamped","exploratory"))

Run the code above in your browser using DataLab