search for: wocast

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

Did you mean: wcast
2007 Apr 19
0
Feature request for 'sprintf' optimization (PR#9621)
...ith a suggestion for significant optimization. First, consider a data.frame with numeric (double) values: dat <- data.frame(year=as.numeric(rep(1970:2000,each=365)), yday=as.numeric(1:365)) nrow(dat) Consider using 'sprintf' in R with and without casting the arrays: wocast <- system.time(with(dat,sprintf("%04i-%03i",year,yday))) wcast <- system.time(with(dat,sprintf("%04i-%03i",as.integer(year), as.integer(yday)))) 100*wocast/wcast # as a percent comparison My results on a Debian VM with R...