TScompare: Compare Time Series Data From Different Databases

Description Usage Arguments Details Value See Also

View source: R/TScompare.R


Utilities for comparing time series from different databases.


    TScompare(ids, con1, con2, na.rm=FALSE, fuzz=1e-14)
    doubleCheck(x, con1=x$con1, con2=x$con2, na.rm=FALSE, fuzz=1e-10)
    tfDetails(x, con1=x$con1, con2=x$con2, na.rm=FALSE)
    ## S3 method for class 'TScompare'
summary(object, ...)
    ## S3 method for class 'TScompare'
tfplot(x, con1=x$con1, con2=x$con2, diff=FALSE, ...)



matrix with one or two columns of character strings indicating pairs of series identifiers. (See details.)


a TScompare object as returned by TScompare.


a database connection as returned by TSconnect.


a database connection as returned by TSconnect.


a logical indicating if NA values should be removed from the beginning and end of series.


a small value indicating the tolerance within which values are considered to be the same.


a TScompare object as returned by TScompare.


logical indicating if the difference should be plotted, rather than the two series.


other arguments. (Not currently used.)


TScompare compares series from two databases (con1 and con2) to check if the series are the same. If ids is a vector or matrix with one column then the same series identifiers are used for both databases. Ifids is a matrix with two columns then the first columns indicates the series ids on first database and the second column indicates corresponding id on the second database.

Series are first checked to see that they cover the same time window. If the window comparison fails (is FALSE) then the value comparison is also indicated as FALSE. When the window comparison is TRUE then the value comparison is set TRUE if all values are within fuzz in absolute value.

The function doubleCheck reruns value comparisons using a different (relaxed) fuzz. It only checks FALSE results, and returns the new result with a different fuzz. (It will be much quicker on very long checks if most series do not need to be rechecked.) Connections (cons) may have expired if there is a long delay bfore running this, in which case they need to be re-established.

The method summary.TScompare summarizes the result returned by TScompare or doubleCheck.

The method tfplot.TScompare plots differences in the series.

The function tfDetails provides details about differences in the time window for series that are not equal.



See Also

AllIds, TSconnect, TSget

TScompare documentation built on May 19, 2017, 1:03 p.m.
Search within the TScompare package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.