Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Theodore Lytras
Στις Σαβ 06 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: > On 6 October 2012 at 11:05, Dirk Eddelbuettel wrote: > | I had a look too. It is not as simple. > > Actually, it was that simple. > > And this is now taken care of in an interim version labelled 0.9.14.2 which > you'll find on my site in a mom

Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Dirk Eddelbuettel
On 6 October 2012 at 11:05, Dirk Eddelbuettel wrote: | I had a look too. It is not as simple. Actually, it was that simple. And this is now taken care of in an interim version labelled 0.9.14.2 which you'll find on my site in a moment, and via R-Forge once new tarballs are built. Rcpp 0.9.15 wil

Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Dirk Eddelbuettel
On 6 October 2012 at 09:21, Dirk Eddelbuettel wrote: | Keep going. Keep sending email. I have some errands to do but will be around | email frequently enough. I had a look too. It is not as simple. For now, I recommend you simply do /not use/ NA, NaN, ... for dates. I think R catches a lot of th

Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Dirk Eddelbuettel
Hi Theodore, On 6 October 2012 at 10:15, Theodore Lytras wrote: | I would LOVE to offer assistance, but I don't think I can do much - my C/C++ | knowledge is fairly limited. We all said that at one point. Learning is about getting further, one step at a time. | I checked out Rcpp's src/Date.c

Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Christian Gunning
+1 > I would LOVE to offer assistance, but I don't think I can do much - my C/C++ > knowledge is fairly limited. Seems to me like you're doing pretty well so far! As often as not, identifying the *location* of the problem is the hardest part. > I checked out Rcpp's src/Date.cpp . It seems all t

Re: [Rcpp-devel] NA value for dates

2012-10-06 Thread Theodore Lytras
Στις Σαβ 06 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: > | Shouldn't there be a special value (like R_NaInt) or a special object or > | something, that represents NA dates?? > > Maybe. Feel like working on a patch? src/RcppDate.cpp is pretty > straightforward and mostly free of template magic. It m

Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Dirk Eddelbuettel
On 5 October 2012 at 23:55, Theodore Lytras wrote: | Στις Παρ 05 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: | > On 5 October 2012 at 21:39, Theodore Lytras wrote: | > | Hello all, | > | | > | I am trying to pass from C++ to R a DateVector with a few missing items | > | (NAs). I can't seem to find a

Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Theodore Lytras
Στις Παρ 05 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: > On 5 October 2012 at 21:39, Theodore Lytras wrote: > | Hello all, > | > | I am trying to pass from C++ to R a DateVector with a few missing items > | (NAs). I can't seem to find a way, though. > | There does not seem to be a NA_DATE (like NA_RE

Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Dirk Eddelbuettel
On 5 October 2012 at 21:39, Theodore Lytras wrote: | Hello all, | | I am trying to pass from C++ to R a DateVector with a few missing items (NAs). | I can't seem to find a way, though. | There does not seem to be a NA_DATE (like NA_REAL, etc), and the default | constructor for Rcpp::Date create

[Rcpp-devel] NA value for dates

2012-10-05 Thread Theodore Lytras
Hello all, I am trying to pass from C++ to R a DateVector with a few missing items (NAs). I can't seem to find a way, though. There does not seem to be a NA_DATE (like NA_REAL, etc), and the default constructor for Rcpp::Date creates a date of "-5877641-06-23". I have even tried to pass an Rcp