setDiffTS | R Documentation |
Symmetric setdiff between two time series (TS)
setDiffTS(Time1, Time2, Vector1 = NULL, Vector2 = NULL)
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 |
Normal setdiff return only numerical values, this function accepts all type of vectors.
List with
TS1notinTS2 |
List with two elements: Time1 and Vector1 according to left side |
TS2notinTS1 |
List with two elements: Time2 and Vector2 according to right side |
For an intersect
operation transform arguments to data.frames and use merge
Michael Thrun
setdiff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.