[R] help:too slow (conclusion)

news_vkhamenya@chat.ru news_vkhamenya at chat.ru
Wed Mar 21 08:21:21 CET 2001


Hello Peter and all,

PDB> col2mat <- function(x, sampsz=220, qsamp=2000)
PDB>    outer(1:qsamp, 1:sampsz, function(i,j) x[i+j,1])

PDB> although it doesn't actually seem much faster than Detlef's
PDB> version.

I agree. However, this solution seems to be more elegant not only
for those who like functional style of programming :)

-- 
Best regards,
Valery A.Khamenya                      mailto:news_vkhamenya at chat.ru


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list