I am trying to work with the Date class which is written in S3 and I would like to access to the elements of the class (for example the year). I've tryed to do it for example like this:
as.Date(Sys.time)->w w$year #Doesn't work w["year"] #is NA I would like to know the correct way to acces to this value. Thank you so much -- Elisenda Vila [[alternative HTML version deleted]] ______________________________________________ R-help@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.