filter_years_eop: filter years eop

View source: R/DataFunctions.R

filter_years_eopR Documentation

filter years eop

Description

Subset data.frame to given years respecting the end-of-period convention

Usage

filter_years_eop(df, years, col_time = "DateTime")

Arguments

df

data.frame with column col_time of equidistant

years

integer vector of years of the form c(1998, 1998)

col_time

Name of the column with the equidistant timesteps

Details

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.

Author(s)

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]

See Also

help_DateTimes, filter_entire_days fKeepColumnAttributes


REddyProc documentation built on May 29, 2024, 12:10 p.m.