Description Usage Arguments Value Author(s) Examples
Creates flag vector with codes and methods according to params list.
1 |
x |
data |
flag.defs |
definitions for flagging |
... |
additional defs for flags |
a vector of flags of length equal to number of rows in data.in
Jordan S. Read
1 2 3 4 5 6 7 8 | dates <- seq(as.POSIXct('1999-01-01'),by=1,length.out=14)
values <- c(runif(12,2,4),NA,NA)
data.in <- data.frame("DateTime"=dates,"sensor.obs"=values)
simple.sqc <- list(list(expression="x == 999999",type="error_code",description="logger error code"),
list(expression='is.na(x)',type='error_code',description='missing data'))
flag(data.in, "x == 999999")
flag(data.in,simple.sqc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.