[R] Addition of numeric data to dates

Henrique Dallazuanna wwwhsd at gmail.com
Fri Mar 14 21:20:33 CET 2008


If I understand:

as.Date("2008-03-14") + 5*365

On 14/03/2008, Jillywadd <jill.waddingham07 at imperial.ac.uk> wrote:
>
>  Hello!
>
>  I currently have a table of data with a column of start dates and a column
>  with some numbers representing years. I need to add these numbers to the
>  dates to get an end date. The two types of data are obviously incompatible
>  and adddition of the two will not work. Does anyone know how I might go
>  about this?? %-|
>  --
>  View this message in context: http://www.nabble.com/Addition-of-numeric-data-to-dates-tp16054166p16054166.html
>  Sent from the R help mailing list archive at Nabble.com.
>
>  ______________________________________________
>  R-help at r-project.org 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list