[Rd] How to convert time_t to R date object
Dirk Eddelbuettel
edd at debian.org
Mon Mar 17 12:39:57 CET 2014
Bill,
On 17 March 2014 at 12:54, Bill Wang wrote:
| Thanks for your reply, I neede convert time_t to R type in C code, can not use
| Rcpp. Maybe Rcpp source code could help me.
Start by reading 'Writing R Extensions' and figure out how to send an int
back and forth. Then cast between int and time_t. Then set the class of the
int variable to Date type.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the R-devel
mailing list