[R] POSIXlt objects

Erik Iverson eriki at ccbr.umn.edu
Tue Jun 8 20:45:35 CEST 2010



Luis Felipe Parra wrote:
> Hello I am using POSIXlt date format and I am having the following problem,
> I've got two dates called FechaIni and FechaFin, one in 2008 and the other
> in 2009 but when I do FechaIni$year and FechaFin$year to call the year I am
> getting the smae year for both.
> 
>> FechaIni
> [1] "2008-11-13 UTC"
>> FechaFin
> [1] "2009-06-13 UTC"
>> FechaFin$year
> [1] 108
>> FechaIni$year
> [1] 108
> does somebody know what is happening? how can I solve this if I need two
> compare just the years of two dates? Thank you

Why don't you tell us what the posting guide asks?  We need your 
sessionInfo(), OS, and a reproducible example.

Can you run ?dput on your two objects?



More information about the R-help mailing list