Description Usage Arguments Value Examples
Perform a flat line test. For more information see U.S. Integrated Ocean Observing System, 2015. Manual for Real-Time Quality Control of In-situ Temperature and Salinity Data Version 2.0: A Guide to Quality Control and Quality Assurance of In-situ Temperature and Salinity Observations. 56 pp. DOI: 10.7289/V5V40SD4.
1 | rtqc_flat(x, rep.threshold, tol)
|
x |
A vector of values. |
rep.threshold |
A length-2 integer vector identifying reasonable counts of repeated values before a data point is considered suspect or indicates sensor failure. Typically specific to location and/or climate and based on expert judgment. |
tol |
Numerical tolerance to consider adjacent observations as repeated values. |
An ordered factor of test flags of same length as x
.
1 2 3 4 5 6 7 8 9 | fake.data = c(rnorm(10, 10, 2), rep(10.0, 3), rnorm(10, 10, 2),
rep(7.0, 8))
# flag data as "suspect" when 4 observations in a row differ by
# less than 0.01, and as "fail" when 6 observations in a row
# differ by less than 0.01.
rtqc_flat(fake.data, c(4, 6), 0.01)
# as above, but 3 repeated observations signals "suspect" while
# 9 observations signals "fail".
rtqc_flat(fake.data, c(3, 9), 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.