Description Usage Arguments Details Value Author(s) See Also Examples
Generate regular mondate
sequences.
1 2 |
from |
a |
to |
a |
... |
optional arguments passed to |
For more details about sequence generation, see seq
.
If from
and to
are both provided,
the displayFormat
and timeunits
properties are
taken from from
,
without a warning if from
's properties differ from
to
's.
A mondate
vector with displayFormat
and timeunits
from argument from
, if provided, otherwise from argument to
.
Dan Murphy
1 2 3 4 5 6 7 8 9 | x<-mondate.ymd(2010,1)
x # January 31, 2010
y<-mondate.ymd(2010,12)
y # December 31, 2010
seq(from=x, to=y) # all month-ends in 2010
# 8 quarter-ends beginning 1st quarter 2009; US displayFormat
seq(mondate("3/31/2009"), by=3, length.out=8)
# 8 quarter-ends ending year-end 2009; non-US displayFormat
seq(to=mondate("2009/12/31"), by=3, length.out=8)
|
Attaching package: 'mondate'
The following object is masked from 'package:base':
as.difftime
mondate: timeunits="months"
[1] 2010-01-31
mondate: timeunits="months"
[1] 2010-12-31
mondate: timeunits="months"
[1] 2010-01-31 2010-02-28 2010-03-31 2010-04-30 2010-05-31 2010-06-30
[7] 2010-07-31 2010-08-31 2010-09-30 2010-10-31 2010-11-30 2010-12-31
mondate: timeunits="months"
[1] 03/31/2009 06/30/2009 09/30/2009 12/31/2009 03/31/2010 06/30/2010 09/30/2010
[8] 12/31/2010
mondate: timeunits="months"
[1] 2008/03/31 2008/06/30 2008/09/30 2008/12/31 2009/03/31 2009/06/30 2009/09/30
[8] 2009/12/31
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.