Thanks very much for responses. The 2 suggestions each do a part of what I
want. Jean's proposal permutes nonzero elements within each row but shifts
the location of the nonzero element around in the j slot of each i row.  And
Douglas's idea keeps the second part but permutes the entire x slot values.
I'll try to see how I can combine these 2 ideas but it's not immediately
obvious to me. =}

-khai

--
View this message in context: 
http://r.789695.n4.nabble.com/column-permutation-of-sparse-matrix-tp4216726p4219031.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to