View source: R/DataFunctions.R
filterLongRunsInVector | R Documentation |
replace runs of numerically equal values by NA
filterLongRunsInVector(x, minNRunLength = 8,
replacement = NA, na.rm = TRUE)
x |
vector in which to replace long runs |
minNRunLength |
minimum length of a run to replace. Defaults to 4 hours in half-hourly spaced data. |
replacement |
value replacing the original values in long run |
na.rm |
set to FALSE if NA values interrupt runs |
vector x
with long runs replaced by NA
Department for Biogeochemical Integration at MPI-BGC, Jena, Germany <REddyProc-help@bgc-jena.mpg.de> [cph], Thomas Wutzler <twutz@bgc-jena.mpg.de> [aut, cre], Markus Reichstein <mreichstein@bgc-jena.mpg.de> [aut], Antje Maria Moffat <antje.moffat@bgc.mpg.de> [aut, trl], Olaf Menzer <omenzer@bgc-jena.mpg.de> [ctb], Mirco Migliavacca <mmiglia@bgc-jena.mpg.de> [aut], Kerstin Sickel <ksickel@bgc-jena.mpg.de> [ctb, trl], Ladislav <U+0160>igut <sigut.l@czechglobe.cz> [ctb]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.