Learn R Programming

coreval (version 0.1.0)

print.coreval_result: Print a coreval check result as a readable report

Description

Describes each problem in the rule's own words, worst first, with the rows and values that caused it. A whole-study result is grouped by dataset, with a summary first, so you can see where the trouble is before reading detail.

Usage

# S3 method for coreval_result
print(x, n = 10, rows = 3, guidance = FALSE, ...)

Value

x, invisibly.

Arguments

x

A result from check_dataset() or check_study().

n

Maximum problems to describe - per dataset, for a study result. The rest are counted, not listed. Default 10.

rows

Maximum example records to show per problem. Default 3.

guidance

Also print the sentence from the Implementation Guide that each rule enforces - the "why" behind it. Off by default: it roughly doubles the length of the report.

...

Ignored.

Examples

Run this code
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")
)
check_dataset(ae)

Run the code above in your browser using DataLab