name<- | R Documentation |
This method modifies the existing name of markovchain object
name(object) <- value
## S4 replacement method for signature 'markovchain'
name(object) <- value
object |
A markovchain object |
value |
New name of markovchain object |
Giorgio Spedicato, Deepak Yadav
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) <- "dangerous mc"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.