View source: R/compare_submission.R
| compare_submission | R Documentation |
Scans two directories for matching dataset files, runs cdisc_compare()
on each pair, and optionally generates a consolidated Excel report.
compare_submission(
base_dir,
compare_dir,
format = NULL,
id_vars = NULL,
tolerance = 0,
output_file = NULL
)
base_dir |
Path to directory containing base/reference files. |
compare_dir |
Path to directory containing comparison files. |
format |
File format to match: "xpt", "sas7bdat", "csv", or "rds". When NULL (default), auto-detected from the most common file type in base_dir. |
id_vars |
Optional character vector of ID variables (passed to each comparison). When NULL, CDISC-standard keys are auto-detected per domain. |
tolerance |
Numeric tolerance for floating-point comparisons (default 0). |
output_file |
Optional path to Excel (.xlsx) file for consolidated report. |
Named list of cdisc_compare() results, one per matched domain.
## Not run:
# Auto-detects format from directory contents
results <- compare_submission("v1/", "v2/",
output_file = "submission_diff.xlsx")
# Explicit format
results <- compare_submission("v1/", "v2/", format = "csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.