Coerce an object to a ggoutbreak compatible case linelist.
Arguments
- x
An object to coerce
- ...
Named arguments passed on to
as.time_periodunitthe length of one unit of time. This will be either a integer number of days, or a specification such as "1 week", or another
time_period. Ifxis atime_period, and the unit is different to that ofxthis will return a rescaledtime_periodusing the new units.start_datethe zero time date as something that can be coerced to a date. If the
xinput is already atime_periodand this is different to itsstart_datethenxwill be recalibrated to use the new start date.anchoronly relevant if
xis a vector of dates, this is a date, or"start"or"end"or a weekday name e.g."mon". With the vector of dates inxit will use this anchor to find a reference date for the time-series. If not provided then the current defaults will be used. (seeset_defaults())
