[Rd] cut takes long time

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 16 Jun 2010 18:56:38 -0400


The following cut command takes nearly 10 seconds on my machine even though the length of input vector is only 6. I am running on Windows Vista with C2D BLAS using R 2.11.1. Using the default BLAS and either R 2.10.1 or "R version 2.12.0 Under development (unstable) (2010-05-31 r52164)" also gives me results in the 9-11 second range. I would have expected it to take much less time.

tt <- structure(c(631206000, 631206060, 631206180, 631206240, 631206300, 978224400), class = c("POSIXt", "POSIXct"), tzone = "")

system.time(cut(tt, "2 hours", include = TRUE)) # 9.45 0.01 9.58

R.version.string # "R version 2.11.1 Patched (2010-05-31 r52167)" win.version() # "Windows Vista (build 6002) Service Pack 2"



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 16 Jun 2010 - 23:01:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jun 2010 - 07:31:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive