Description Usage Arguments Details Value Author(s) See Also Examples
Expand difftime units to include months and years .
1 | 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
1 2 3 4 | x <- mondate(0:12)
y <- as.difftime(1, , "months")
x + y
x - y
|
Attaching package: 'mondate'
The following object is masked from 'package:base':
as.difftime
mondate: timeunits="months"
[1] 2000-01-31 2000-02-29 2000-03-31 2000-04-30 2000-05-31 2000-06-30
[7] 2000-07-31 2000-08-31 2000-09-30 2000-10-31 2000-11-30 2000-12-31
[13] 2001-01-31
mondate: timeunits="months"
[1] 1999-11-30 1999-12-31 2000-01-31 2000-02-29 2000-03-31 2000-04-30
[7] 2000-05-31 2000-06-30 2000-07-31 2000-08-31 2000-09-30 2000-10-31
[13] 2000-11-30
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.