I am trying to use rEMM package for the Extensible Markov Models. I tried the following sequence of code: emmt=EMM(measure="euclidean",threshold=0.75,lambda=0.001) emmt=build(emmt,data) new_threshold=sum(cluster_counts(emmt))*0.002 emmt_ new=prune(emmt,new_threshold) However, I get the following error when I run the last line of the code: Error in remove_clusters(x, rare_clusters(x, count_threshold count_threshold)) : (subscript) logical subscript too long In addition: Warning message: In smc_removeState(x at tracds_d$mm, to_remove) : State 72103254328333338344346362367369370376377390412425440445483489499 does not exist! I am unable to provide the data that I used since it is confidential. It would be great if someone can still help with the issue??? Thank you. Ravi -- View this message in context: http://r.789695.n4.nabble.com/Error-in-prune-in-the-rEMM-package-tp4474200p4474200.html Sent from the R help mailing list archive at Nabble.com.