A convenience function, mostly used to testing that rejoin
works as intended. It checks that data frames have the same dimensions and
column names, with duplicates allowed, then checks they contain the same
data. For the latter step, column names are made unique first, so columns
with duplicate names must be presented in the same order in both data frames.
Usage
df_equiv(df1, df2, digits = getOption("digits"))
Arguments
- df1, df2
Data frames.
- digits
a positive integer, indicating how many significant digits are to be used for numeric and complex variables. A value of NA results in no rounding. By default, this uses
getOption("digits")
, similarly toformat
. See the note inprint.default
about digits >= 16.