Displaying 1 result from an estimated 1 matches for "state_transit".
2009 Feb 26
0
How do I retrieve column and row names after comparing two matrices?
...n 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)
lf
}
state_trans_freqs()
The result is reported as:
1...