Learn R Programming

cards (version 0.5.1)

print_ard_conditions: Print ARD Condition Messages

Description

Function parses the errors and warnings observed while calculating the statistics requested in the ARD and prints them to the console as messages.

Usage

print_ard_conditions(x, condition_type = c("inform", "identity"))

Value

returns invisible if check is successful, throws all condition messages if not.

Arguments

x

(data.frame)
an ARD data frame of class 'card'

condition_type

(string)
indicates how warnings and errors are returned. Default is "inform" where all are returned as messages. When "identity", errors are returned as errors and warnings as warnings.

Examples

Run this code
# passing a character variable for numeric summary
ard_continuous(ADSL, variables = AGEGR1) |>
  print_ard_conditions()

Run the code above in your browser using DataLab