Skip to contents

grates objects

epiweek()
Constructor for epiweek objects
isoweek()
Constructor for isoweek objects
yearweek()
Constructor for yearweek objects
yearmonth()
Constructor for yearmonth objects
yearquarter()
Constructor for yearquarter objects
year() is_year()
Construct a year object
as_epiweek()
Coerce to a epiweek object
as_isoweek()
Coerce to a isoweek object
as_month()
Coerce an object to month
as_period()
Coerce an object to period
as_year()
Coerce an object to year-quarter
as_yearmonth()
Coerce an object to year-month
as_yearquarter()
Coerce an object to year-quarter
as_yearweek()
Coerce to a yearweek object
print(<grates_month>) format(<grates_month>)
Print a month object
print(<grates_period>) format(<grates_period>)
Print a period object
print(<grates_year>) format(<grates_year>)
Print a year-quarter object
print(<grates_yearmonth>) format(<grates_yearmonth>)
Print a year-month object
print(<grates_yearquarter>) format(<grates_yearquarter>)
Print a year-quarter object

Accessors

get_firstday() get_week() get_year() get_n() get_offset()
Accessors for grate objects
date_start() date_end() `%during%`
Access the start (end) dates of a grates vector

Plotting

Developer tools

isoweek()
Constructor for isoweek objects
new_epiweek() is_epiweek()
Minimal constructor for an epiweek object
new_isoweek() is_isoweek()
Minimal constructor for an isoweek object
new_month() is_month()
Minimal Constructor for a month object
new_period() is_period()
Minimal constructor for a period object
new_yearmonth() is_yearmonth()
Minimal constructor for a yearmonth object
new_yearquarter() is_yearquarter()
Minimal constructor for a yearquarter object
new_yearweek() is_yearweek()
Minimal constructor for a yearweek object
year() is_year()
Construct a year object