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?
______________________________________________
[email protected] 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.