search for: additionalvalu

Displaying 1 result from an estimated 1 matches for "additionalvalu".

Did you mean: additionalvals
2010 Dec 23
1
speed issues? read R_inferno by Patrick Burns: & a memory query
Hi, I'm just starting out with R and came across R_inferno.pdf by Patrick Burns just yesterday - I recommend it! His description of how 'growing' objects (e.g. obj <- c(obj, additionalValue) eats up memory prompted me to rewrite a function (which made such calls ~210 times) so that it used indexing into a dimensioned object instead (i.e. obj[i, ] <- additionalValue). This transformed the process from old version: user system elapsed 133.436 14.257 155.807 new version:...