This function takes a dataframe, and does a simple check for outliers based on the boxplot.stats() routine. Specifically, it identifies data which is 1.5, 5, or 10 times the length of the box away from the box. These are identified as "Possible", "Likely", or "Extreme" in the resultant "OL_<field>" column, respectively. Other data is identified as "OK", which indicates that it is within a reasonable range of the mean.
a dataframe to be analyzed.
a fieldname within the df to be analyzed.
the df, with an additional field - "OL_<field>".
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.