Displaying 1 result from an estimated 1 matches for "unique_transitions".
2009 Feb 26
0
How do I retrieve column and row names after comparing two matrices?
......
name4 2,0 0,2 0,2 ...
Comparison of both matrices reports a unique difference based on the
following code:
informative<-which(matrix1!=matrix2)
transitions<-napaste(matrix1,matrix2)[informative]
unique_transitions<-unique(transitions)
lfreq<-list(State_transitions=unique_transitions)
lf<-as.data.frame(lfreq)
plot(lf)
write.table(lf,"C:\\
state_transitions.txt",sep="\t",quote=FALSE,row.names=TRUE)...