Skip to contents

A tidyverse-native engine for comparing two data frames in the spirit of SAS PROC COMPARE, with extensions for clinical / pharma QC workflows.

Getting started

The single entry point is ks_compare():

library(ksCompare)

cmp <- ks_compare(adsl_prod, adsl_qc, by = "USUBJID")
cmp                       # console summary
tibble::as_tibble(cmp)    # long cell-level diff table
ks_report_html(cmp, "qc.html")

Building blocks

ks_compare() also accepts file paths directly (.sas7bdat, .xpt, .parquet, .feather/.arrow, .rds, .rdata/.rda, .csv, .tsv) and chooses a reader based on the file extension.

Author

Maintainer: Igor Aleschenkov igor.aleschenkov@gmail.com

Authors: