From: Mark Edmondson-Jones <Mark.Edmondson-jones_at_nottingham.ac.uk>

Date: Wed 13 Apr 2005 - 23:50:43 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 14 00:00:15 2005

Date: Wed 13 Apr 2005 - 23:50:43 EST

I'm wanting to perform analysis (e.g. using eigen()) of binary matrices - i.e. matrices comprising 0s and 1s.

n<-1000

test.mat<-matrix(round(runif(n^2)),n,n)

eigen(test.mat,only.values=T)

Is there a more efficient way of setting up test.mat, as each cell only requires a binary digit? I imagine R is setting up a structure which could contain n^2 floats.

Thanks in advance for any help.

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 14 00:00:15 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:07 EST
*