Re: [R] Creating a sparse matrix from a file

2009-10-28 Thread Pallavi P
Martin Maechler wrote: > >>>>> "PP" == Pallavi P > >>>>> on Wed, 28 Oct 2009 16:30:25 +0530 writes: > >PP> Hi Martin, > PP> I followed your example on my set of data. Which has non zero > values in >PP> 30

Re: [R] Creating a sparse matrix from a file

2009-10-28 Thread Pallavi P
Pallavi On Tue, Oct 27, 2009 at 8:34 PM, Martin Maechler wrote: > >>>>> "PP" == Pallavi P > >>>>> on Tue, 27 Oct 2009 18:13:22 +0530 writes: > >PP> Hi Martin, >PP> Thanks for the help. Just to make sure I understand correctly. &

Re: [R] Creating a sparse matrix from a file

2009-10-27 Thread Pallavi P
Hi Martin, Thanks for the help. Just to make sure I understand correctly. The below steps are for creating an example table similar to the one that I read from file. n <- 22638 m <- 80914 nnz <- 30 # no idea if this is realistic for you set.seed(101) ex <- cbind(i = sample(n,nnz, replace=TR