daily_stats | R Documentation |
The function calculates various daily statistics for dendrometer and environmental data. It either returns multiple statistics for individual sensors, or a single statistic for multiple sensors.
daily_stats(dm.data, sensor = 1, value = c("mean", "min",
"max", "sum"), smooth.param = 1)
dm.data |
a |
sensor |
a |
value |
a |
smooth.param |
a |
The function calculates various daily statistics for dendrometer and environmental data. For sensor
is numeric
, the function returns multiple statistics for a single sensor. For sensor = "ALL"
, the function returns a single statistic (i.e. "mean"
, "min"
, "max"
or "sum"
) for all columns of the data.frame
, whereby "sum"
is particularly relevant for environmental parameters like precipitation.
The function includes a smoothing option (argument smooth.param
) particularly for noisy datasets in which outliers may under- or overestimate minimum and maximum stem sizes within days. By default, no smoothing is performed. Smoothing requires gap-free series.
The function returns:
for sensor
is numeric
, a data.frame
containing the following columns:
dmID |
dendrometer ID. |
date |
timestamp in |
DOY |
day of year. |
min |
minimum daily stem size. |
mean |
mean daily stem size. |
max |
maximum daily stem size. |
amplitude |
amplitude of daily stem-size changes (i.e. max - min). |
time_min |
timestamp indicating the timing of the minimum. |
time_max |
timestamp indicating the timing of the maximum. |
for sensor
is "ALL"
:
a data.frame
with a timestamp (%Y-%m-%d
) as row names, and processed dendrometer or environmental data in columns (i.e. mean, minimum, maximum or sum).
Olivier Bouriaud, Ernst van der Maaten and Marieke van der Maaten-Theunissen.
data(dmCD)
dm.daily <- daily_stats(dmCD, sensor = 1)
data(dmED)
dm.daily <- daily_stats(dmED, sensor = "ALL", value = "max")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.