USGS-R / sensorQC

sensorQC is a flexible framework for QAQCing high-frequency data for a continuously evolving catalogue of sensors
Other
12 stars 7 forks source link

mad and other stats functions should only use finite numbers #37

Closed jordansread closed 9 years ago

jordansread commented 9 years ago

see https://github.com/USGS-R/sensorQC/issues/36

jordansread commented 9 years ago
values1 <- c(runif(10,2,4),10000, runif(5,2,4))
values2 <- c(runif(10,2,4),10000, NA, runif(4,2,4))
flag(values1, "is.na(x)", 'MAD(x) > 3')
flag(values2, "is.na(x)", 'MAD(x) > 3')
jordansread commented 9 years ago

should be covered by https://github.com/jread-usgs/sensorQC/commit/599b8717fd3bf5d13c59c14ddda4701e730f24ea