Learn R Programming

dateutils (version 0.1.5)

match_ts_dates: Match dates between two timeseries

Description

Find values in `new_ts` that correspond to dates in `old_ts`

Usage

match_ts_dates(old_ts, new_ts)

Arguments

old_ts

timeseries data

new_ts

timeseries data

Value

Timeseries data in which `new_ts` corresponds to `old_ts`

Examples

Run this code
# NOT RUN {
old_ts <- ts(c(1,2,3,4), start=c(2020,1), end=c(2020,4), frequency=4) 
new_ts <- ts(c(5,6,3,4), start=c(2019,4), end=c(2020,3), frequency=4) 
match_ts_dates(old_ts, new_ts) 
# }

Run the code above in your browser using DataLab