[R] integer to date-format

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jun 5 09:06:30 CEST 2007



Rina Miehs wrote:
> hello
>  
> I have a problem...
> I have to subtract an integer from a date-format and that is not
> possible!

The Exmaples section in ?DateTimeClasses shows that it works well:

Sys.time() - 3600             # an hour ago

Uwe Ligges



> How is it possible to convert an integer to a date-format?? any date
> format? i cant make it work without errors...
>  
> Thanks
> Rina Miehs
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list