View source: R/Quality_checking.R
flag_runs | R Documentation |
Identify and flag values of runs with repeating values in a vector.
flag_runs(x, name_out = "-", length = 4)
x |
A numeric atomic type with NULL dimensions. |
name_out |
A character string providing |
length |
A numeric value. The minimum number of repeating values to trigger flagging. |
NA
values are omitted before evaluation of runs. Thus NA
s do
not interrupt runs. Flagging is done according to the 0 - 2 quality control
flag scheme.
An integer vector with the same length as x
. Its
varnames
and units
attributes are set to name_out
and
"-"
values, respectively.
(xx <- c(rep(c(0, NA), 5)))
flag_runs(xx, "qc_xx_runs")
(yy <- rep(1:6, rep(c(2, 1), 3)))
flag_runs(yy, "qc_yy_runs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.