View source: R/Quality_checking.R
desp_loop | R Documentation |
This is a low level function not intended to be used on its own. It is
utilized by despikeLF
that should be used instead.
desp_loop(SD_sub, date, nVals, z, c, plot = FALSE)
SD_sub |
A data frame prepared by |
date |
An unsubsetted vector of class |
nVals |
A numeric value. Number of values within 13-day blocks required to obtain robust statistics. |
z |
A numeric value. |
c |
A numeric value. |
plot |
A logical value. If |
If plot = FALSE
, an updated data frame SD_sub
with
identified spikes in column Spike and with three new columns var_minus,
var_plus and diff. If plot = TRUE
, a list with elements SD
(a
data frame identical to the one produced if plot = FALSE
) and
plots
containing a list of ggplot
objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.