setDiffTS: setdiff between two time series (TS)

View source: R/setDiffTS.R

setDiffTSR Documentation

setdiff between two time series (TS)

Description

Symmetric setdiff between two time series (TS)

Usage

setDiffTS(Time1, Time2, Vector1 = NULL, Vector2 = NULL)

Arguments

Time1

[1:n] POSIXct, or similar time object

Time2

[1:m] POSIXct, or similar time object

Vector1

Default: NULL, else [1:n] vector

Vector2

Default: NULL, else [1:m] vector

Details

Normal setdiff return only numerical values, this function accepts all type of vectors.

Value

List with

TS1notinTS2

List with two elements: Time1 and Vector1 according to left side setdiff

TS2notinTS1

List with two elements: Time2 and Vector2 according to right side setdiff

Note

For an intersect operation transform arguments to data.frames and use merge

Author(s)

Michael Thrun

See Also

setdiff


Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.