View source: R/DataFunctions.R
filter_years_eop | R Documentation |
Subset data.frame to given years respecting the end-of-period convention
filter_years_eop(df, years, col_time = "DateTime")
df |
data.frame with column col_time of equidistant |
years |
integer vector of years of the form |
col_time |
Name of the column with the equidistant timesteps |
The end-of-period (usually end-of-half-hour) convention in the Fluxnet community results in midnight and new-year being the last record of the previous day or the year respectively, although POSIXt function will report the next day or year respectively.
Column attributes such as 'units' are kept.
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]
help_DateTimes
, filter_entire_days
fKeepColumnAttributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.