A checkFunction to be called from
check that identifies outlier values
in a numeric/integer/Date variable by use of the Turkey Boxplot method (consistent witht the
identifyOutliersTBStyle(v, nMax = 10, maxDecimals = 2)
A numeric, integer or Date variable to check.
The maximum number of problematic values to report.
A positive integer or
Outliers are defined in the style of Turkey Boxplots (consistent with the
boxplot function), i.e. as values that are smaller than the 1st quartile minus
the inter quartile range (IQR) or greater than the third quartile plus the IQR.
For Date variables, the calculations are done on their raw numeric format (as
obtained by using
unclass), after which they are translated back to Dates.
Note that no rounding is performed for Dates, no matter the value of
checkResult with three entires:
$problem (a logical indicating whether outliers were found),
$message (a message describing which values are outliers) and
$problemValues (the outlier values).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.