sync_timeseries: Helper to synchronize timeseries

Description Usage Arguments Details Value

View source: R/utils.R

Description

Find the overlapping period for time series with equal fixed time steps. Given two or more time vectors, the function returns a list containing logical vectors which indicate, for each input time series and each time step whether it is included within the overlapping period.

Usage

1

Arguments

...

Time vectors (supporting the min/max methods)

Details

If different classes types are found, the functions tries to convert the vectors using as.Date(), so make sure to have matching classes before using this function to disable this behavior!

Value

A list of logical vectors with each component being the same length as as the length of each input time vector. A TRUE value indicates that the corresponding time step was found to be within the time range of all the other time vectors.


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.