tsalign: Time-Alignment of Measurements to Regular Time Intervals

Description Usage Arguments Value

View source: R/functions_L1.R

Description

tsalign aligns measurements to regular time intervals by interpolating between irregular time intervals. If precipitation data is supplied the values are summed up.

Usage

1
tsalign(df, reso, year, tz)

Arguments

df

input data.frame.

reso

numeric, desired output time resolution (in minutes). See Details for more information on data aggregation.

year

character, if year = "asis" the output data.frame covers the same period as the input data; if year = "full" then the output data.frame is expanded to complete years, i.e. YYYY-01-01 to YYYY-12-31.

tz

specify the desired time zone. Default is "UTC".

Value

data.frame with measurements aligned to regular time intervals, i.e. to reso.


treenet/treenetproc documentation built on June 16, 2021, 4:39 p.m.