clean.timeseries: Housekeeping time series

Description Usage Arguments Value

View source: R/clean.timeseries.R

Description

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.

Usage

1
harmonise.timeseries(x,y, start_date, end_date, by = "week")

Arguments

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"

Value

This function returns to a data frame

date

date of observations in fixed interval

estimate

estimate of observation in fixed interval


brisneve/THE documentation built on May 21, 2019, 11:09 a.m.