Re: [Rcpp-devel] Datetime and DatetimeVector definitions

2011-05-19 Thread Dirk Eddelbuettel
On 19 May 2011 at 15:27, Jason Lessels wrote: | Hi Dirk, | Thanks for your help. I am 99% confident that there is a better method to my example below, but this is the only way i was able to pass the format string to for the datetime object. | | src<-' | StringVector stringVec(dates); | int n_st

Re: [Rcpp-devel] Datetime and DatetimeVector definitions

2011-05-19 Thread Jason Lessels
Hi Dirk, Thanks for your help. I am 99% confident that there is a better method to my example below, but this is the only way i was able to pass the format string to for the datetime object. src<-' StringVector stringVec(dates); int n_stringVec=stringVec.size(); std::string fmt =Rcpp::as( format

Re: [Rcpp-devel] Datetime and DatetimeVector definitions

2011-05-19 Thread Dirk Eddelbuettel
Hi Jason, On 19 May 2011 at 11:00, Jason Lessels wrote: | Hi, | I have a very limited understanding of the class definition, but i was wondering if I could make a request for a minor change in relation to the two classes Datetime and the extension DatetimeVector. I have been successfully using

[Rcpp-devel] Datetime and DatetimeVector definitions

2011-05-19 Thread Jason Lessels
Hi, I have a very limited understanding of the class definition, but i was wondering if I could make a request for a minor change in relation to the two classes Datetime and the extension DatetimeVector. I have been successfully using Datetime class, passing both the date string and the format s