Description Usage Arguments Value
View source: R/clean.timeseries.R
This function creates a time series of observation with fixed continuous intervals and no missing values. Useful in merging and harmonising two time series with different intervals and have missing values.
1 | harmonise.timeseries(x,y, start_date, end_date, by = "week")
|
x |
date of observations (class: date, format: YYYY-MM-DD) |
y |
estimate of observations (class: numeric, format: YYYY-MM-DD) |
start_date |
start date of observations (class: date, format: YYYY-MM-DD) |
end_date |
end date of observations (class: date, format: YYYY-MM-DD) |
by |
interval, e.g. day, week, month, year; default = "week" |
This function returns to a data frame
date |
date of observations in fixed interval |
estimate |
estimate of observation in fixed interval |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.