Skip to content
Prev 258390 / 398502 Next

Still confused about classes

Hi Russ,

One tool that might help could be ?methods and ?showMethods

For example:
## for S3
methods(class = "Date")
## for S4
showMethods(classes = "Date")

regarding getting the actual year, I would use (though there may be
better ways):

format.Date(as.Date("2010-01-01"), format = "%Y")

HTH,

Josh
On Thu, Apr 28, 2011 at 11:05 PM, Russ Abbott <russ.abbott at gmail.com> wrote: