as.difftime {mondate} | R Documentation |
Expand difftime units to include months and years .
as.difftime(tim, format = "%X", units = "auto")
tim |
|
format |
|
units |
Anything allowed by |
Primarily used to facilitate adding months and years to
mondate
s.
See base:::as.difftime.
See base:::as.difftime.
Dan Murphy.
Base as.difftime
x <- mondate(0:12) y <- as.difftime(1, , "months") x + y x - y