Displaying 1 result from an estimated 1 matches for "napaste".
Did you mean:
namaste
2009 Feb 26
0
How do I retrieve column and row names after comparing two matrices?
...2 ...
name3 0,2 1,0 2,0 ...
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&quo...