Skip to contents

The short form of print.coreval_result(), for when you have run a check inside a script, or just want to know whether the last fix helped.

Usage

# S3 method for class 'coreval_result'
summary(object, ...)

Arguments

object

A result from check_dataset() or check_study().

...

Ignored.

Value

A one-row data.table::data.table(), invisibly, with the counts it printed - so it can be logged or compared.

Examples

ae <- data.frame(
  STUDYID = "S1", DOMAIN = "AE", USUBJID = c("01", "01"),
  AESEQ = c(1, 2), AETERM = c("Headache", "Rash"),
  AESTDTC = c("2024-01-10", "2024-02-30")
)
summary(check_dataset(ae))
#> 4 problems across 2 records  (160 checks ran, 51 could not)
#>   wrong value       2
#>   missing required  1
#>   missing optional  1