getName: Method to retrieve name of markovchain object

Description Usage Arguments Author(s) Examples

Description

This method returns the name of markovchain object

Usage

1
2
3
4
name(object)

## S4 method for signature 'markovchain'
name(object)

Arguments

object

A markovchain object

Author(s)

Giorgio Spedicato, Deepak Yadav

Examples

1
2
3
4
5
6
7
statesNames <- c("a", "b", "c")
markovB <- new("markovchain", states = statesNames, transitionMatrix =
                matrix(c(0.2, 0.5, 0.3, 0, 1, 0, 0.1, 0.8, 0.1), nrow = 3,
                byrow = TRUE, dimnames=list(statesNames,statesNames)),
               name = "A markovchain Object" 
)
name(markovB)


Search within the markovchain package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.