datetime - Lubridate in R throws up infinite recursion error; but only after 48K rows -
my table "march" has 92,497 rows , 2 columns.
head(march) unique.key reportdate 1: 30062874 03/01/2015 12:08:00 2: 30062909 03/01/2015 01:43:57 3: 30062973 03/01/2015 01:36:21 4: 30063031 03/01/2015 12:44:00 5: 30063086 03/01/2015 01:22:59 6: 30063107 03/01/2015 02:00:54
i'm trying convert dates posixct using lubridate
. starting smaller file of 500 rows, this:
march$reportdate <- mdy_hms(march$reportdate, tz="")
gave me:
unique.key reportdate 1: 30180483 2015-03-15 23:59:00 2: 30181183 2015-03-15 23:58:00 3: 30185134 2015-03-15 23:56:24
trying run on full table 92k rows, got error:
error: evaluation nested deeply: infinite recursion / options(expressions=)?
error during wrapup: evaluation nested deeply: infinite recursion / options(expressions=)?
reducing number of rows, able convert 48,000 rows. error comes @ rows => 48,001. line 48,001 looked fine. skipped 47,999 rows in read.csv , remaining 44k rows converted expected.
the csv here. i'm on mac 10.9 , using rstudio v0.98,
sessioninfo() r version 3.1.3 (2015-03-09) platform: x86_64-apple-darwin13.4.0 (64-bit) running under: os x 10.9.1 locale: [1] en_us.utf-8/en_us.utf-8/en_us.utf-8/c/en_us.utf-8/en_us.utf-8 attached base packages: [1] stats graphics grdevices utils datasets methods base other attached packages: [1] lubridate_1.3.3 plyr_1.8.2 data.table_1.9.4 loaded via namespace (and not attached): [1] chron_2.3-45 digest_0.6.8 magrittr_1.5 memoise_0.2.1 [5] rcpp_0.11.6 reshape2_1.4.1 stringi_0.4-1 stringr_1.0.0 [9] tools_3.1.3
appreciate pointers/suggestions what's going on.
Comments
Post a Comment