rtqc_rate: Rate Test

Description Usage Arguments Value Examples

View source: R/rtqc.r

Description

Perform a rate of change 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.

Usage

1
rtqc_rate(x, n.dev, n.prior, ...)

Arguments

x

A vector of values.

n.dev

The number of standard deviations to test against.

n.prior

the number of prior observations to use for computing the standard deviation. For example, to compute standard deviations over the previous 25 hours from 15-minute data use n.prior = 100.

...

Other arguments to pass to stats::sd(), i.e., the argument na.rm.

Value

An ordered factor of test flags of same length as x.

Examples

1
2
fake.data = c(rnorm(10,10), rnorm(10, 50), rnorm(10,10))
rtqc_rate(fake.data, 2, 5)

SuisunMarshBranch/wqptools documentation built on May 1, 2021, 2:21 a.m.