Skip to content
Prev 16850 / 398502 Next

chron problem: extracting days and years

as.POSIXlt is nothing to do with chron.  You are confusing two systems.
months() is part of base R: days() is not, and it does not say it works
with R's dates.

The answer is on the help page for months(), BTW:
[1] 17  98

or look at ?strftime for e.g.
[1] "1998"
[1] "17"

if you want a character string.
On Sun, 3 Feb 2002, John Field wrote:

            
An R upgrade is long overdue ....