[Rcpp-devel] Understanding the behaviour of const CharacterVector as a function parameter
Simon Zehnder
szehnder at uni-bonn.de
Sun Sep 29 21:05:15 CEST 2013
Hi Dirk,
this is where I took the idea from. The fasttime package works with delimited date patterns, which we often do not have. We have rather something like: 20130405 instead of 2013-04-05 (and I don't want to start with manipulating data in perl or python before reading it into R; this gets usually messy). WIthout a delimiter the code in fasttime does not work. I use the basic principle of Simon's code and extend it to undelimited date patterns with four year digits and two year digits; but using Rcpp instead of the C and the SEXPs. I see though, that the Date::mktime00 function does something very similar …
Does it even make sense to think about working with POSIXct in Rcpp or is this task already completed/unnecessary?
Best
Simon
On Sep 29, 2013, at 8:49 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 29 September 2013 at 20:20, Simon Zehnder wrote:
> | This was my first approach. I write a date parser that converts strings to seconds since 1970 for Rcpp.
>
> Is there a reason you cannot use Simon Urbanek's fasttime?
>
> http://rforge.net/fasttime/
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list