| checkeq | R Documentation | 
Check actual versus expected values and get helpful metrics back. Author: Bryce Chamberlain. Tech review: Lindsay Smeltzer.
checkeq(
  expected,
  actual,
  desc = "",
  acceptable_pct_diff = 0.00000001,
  digits = 2
)
expected | 
 The expected value of the metric.  | 
actual | 
 The actual value of the metric.  | 
desc | 
 (Optional) Description of the metric being checked.  | 
acceptable_pct_diff | 
 (Optional) Acceptable percentage difference when checking values. Checked as an absolute value.  | 
digits | 
 (Optional) Digits to round to. Without rounding you get errors from floating values. Set to NA to avoid rounding.  | 
Message (via cat) indicating success or errors out in case of failure.
checkeq(expected=100,actual=100,desc='A Match')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.