h_nodata | R Documentation |
Replace values with NA conditionally or in a time interval
h_nodata(file, threshold = NA, test = "=", start = NA, end = NA)
file |
File name to proceed |
threshold |
Threshold value (default = NA) |
test |
Test "=" (default);"<";"<=";">";">=" |
start |
Start date/time (included) of POSIXct class (default = NA) |
end |
End date/time (excluded) of POSIXct class (default = NA) |
The function replace values with NA conditionally or introduce a gap for a given interval.
For the conditional option, the start parameter must be NA. A conditional test is applied on the values (= ; > ; >= ; < ; <=) with a fixed threshold returning NA if the test is verified.
For the gap option, the threshold parameter must be NA. All the values of the records within the interval start end are replaces by NA.
CAUTION ! At least one of both parameters threshold or start must not be NA. NA.
The output file is named with a na_ prefix.
P. Chevallier - Oct 2017-Jan 2019
## Not run:
f <- h_nodata(f, threshold=10., test= "<=", start=NA)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.