This function compares numerical and non-numerical columns to see if they match. Rows and columns can be in any order. The function
performs the following checks:
Checks that the two data frames are the same size
Checks that column names are the same, and that the matching column has the same entries
Checks column by column that the elements are the same, after sorting according to the matching column
It then summarises for each column whether there are any differences, and also what the differences are, if any.
This is intended to cross-check results. For example, if you run something in COINr and want to check indicator results against
external calculations.
This function replaces the now-defunct compareDF()
from COINr < v1.0.