search for: assocmatrix

Displaying 1 result from an estimated 1 matches for "assocmatrix".

Did you mean: allocmatrix
2012 Feb 26
1
Matrix problem to extract animal associations
...FALSE FALSE FALSE FALSE FALSE NA FALSE FALSE ID9 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE NA FALSE ID10 FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE NA > > irow <- as.character(gl(length(IDs),length(IDs),labels=IDs)) > icol <-rep(IDs, length(IDs)) > > AssocMatrix <- matrix(data=paste(irow,"_",icol,"_",sep=""), + nrow = length(IDs), ncol = length(IDs), + dimnames= list(IDs, IDs)) > > AssocMatrix ID1 ID2 ID3 ID4 ID5 ID6 ID7...