remove_clusters(x, to_remove, copy = TRUE)
remove_transitions(x, from, to,copy = TRUE)
remove_selftransitions(x, copy = TRUE)
EMM
object.to
is
missing from
has to contain a matrix with two columns
(from and to state names).x
!copy=FALSE
a reference to the object x
with the states/transistions removed is returned.remove_selftransitions
removes the transitions from each state to itself.data("EMMTraffic")
emm <- EMM(measure="eJaccard", threshold=0.2)
emm <- build(emm, EMMTraffic)
## remove state 3
emm_rs3 <- remove_clusters(emm, "3")
## remove transition 5->2
emm_rt52 <- remove_transitions(emm, "5", "2")
## compare EMMs
op <- par(mfrow = c(2, 2), pty = "m")
plot(emm, method = "graph", main = "original EMM")
plot(emm_rs3, method = "graph", main = "state 3 removed")
plot(emm_rt52, method = "graph", main = "transition 5->2 removed")
par(op)
Run the code above in your browser using DataLab