Re: [R] Creating a Sparse Matrix from a Sparse Vector

2009-01-20 Thread Martin Maechler
> "B" == BDGrantham > on Tue, 20 Jan 2009 11:53:55 -0600 writes: B> Hello, B> I am working with a sparse matrix that is approx. 13,900 by 14,100. My B> goal is to select a row out of the matrix and create a new matrix with that B> row repeated 13,900 times without

[R] Creating a Sparse Matrix from a Sparse Vector

2009-01-20 Thread BDGrantham
Hello, I am working with a sparse matrix that is approx. 13,900 by 14,100. My goal is to select a row out of the matrix and create a new matrix with that row repeated 13,900 times without having to do any looping. Example: Starting Matrix: exampleMatrix 3 x 4 sparse Matrix of class "dgCMatrix