Skip to content
Prev 6501 / 10988 Next

[Rcpp-devel] Understanding the behaviour of const CharacterVector as a function parameter

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: