Skip to contents

Numbers agree within tolerance, dates on the day, text exactly; a value missing on both sides agrees.

Usage

compare_features(
  left,
  right,
  key = "subject_id",
  columns = NULL,
  tolerance = 0
)

Arguments

left, right

Data frames of features.

key

Key column (default subject_id).

columns

Columns to compare; default DEMO_FEATURE_COLUMNS present on either side.

tolerance

Allowed absolute difference for numbers.

Value

A list: key counts, per-column mismatch counts and match.