expect_dfs_equal: Expectation: Are Two Datasets Equal?

Description Usage Arguments Author(s) Examples

View source: R/test_helpers.R

Description

Uses diffdf::diffdf() to compares 2 datasets for any differences

Usage

1
expect_dfs_equal(base, compare, keys, ...)

Arguments

base

Input dataset

compare

Comparison dataset

keys

character vector of variables that define a unique row in the base and compare datasets

...

Additional arguments passed onto diffdf::diffdf()

Author(s)

Thomas Neitmann

Examples

1
2
3
4
5
6
7
## Not run: 
testthat::test_that("a missing row is detected", {
  data(dm)
  expect_dfs_equal(dm, dm[-1L, ], keys = "USUBJID")
})

## End(Not run)

epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.