Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/qat_analyse_noc_rule_2d.R
This check tests data on whether it changes after a given amount of values.
1 | qat_analyse_noc_rule_2d(measurement_vector, max_return_elements)
|
measurement_vector |
The measurement vector (2d array), which should be tested |
max_return_elements |
Number of coherent elements, which are allowed to have no change between the single values, without indicate an error |
This check tests the given measurement vector (2d array) in direction of the first dimension, on how much values in a row gut the same value. If the number of values, which is defined by max\_return\_elements prior to the actual element got the same value as the actual element, the resulting flagvector will be set to 1 on the actual position. Else it will be set to 0.
It returns a list with the following entries:
flagvector |
flagvektor (2d array) with the dimension of measurement vector, where a 0 indicates no error and a 1 that there is a repetition error |
max_return_elements |
Give back the given max\_return\_elements |
Andre Duesterhus
Meek, D.W., Hatfield, J.L. (1994) Data quality checking for single station meteorological databases, \_Agricultural and Forest Meteorology\_, *69* (1-2), 85-109.
qat_plot_noc_rule_1d
, qat_call_noc_rule
1 2 | vec <- array(c(1,1,1,2,2),c(5,20))
result <- qat_analyse_noc_rule_2d(vec, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.