cycle_stats | R Documentation |
The function defines stem cycles from output of phase_def
and calculates statistics for complete cycles as well as for the phases of contraction, expansion and stem-radius increment.
cycle_stats(dm.gpf, dm.phase, sensor = 1, smooth.param = 1)
dm.gpf |
a |
dm.phase |
a |
sensor |
a |
smooth.param |
a |
The function uses the output of phase_def
to define stem cycles and to calculate statistics for all cyclic phases. These statistics include the timing and duration of each phase, as well as information on stem-size changes. The function works for single dendrometer series, which are defined by the argument sensor
.
The function includes a smoothing option (argument smooth.param
) particularly for noisy datasets in which outliers may under- or overestimate the minimum and maximum stem size within phases and stem cycles. By default, no smoothing is performed.
The function returns a list
with:
a data.frame
named cycleStats
containing the following summary statistics:
dmID |
dendrometer ID. |
cycle |
cycle number. |
phase |
cyclic phase (1: contraction, 2: expansion, 3: stem-radius increment, 4: full cycle). |
begin |
timestamp indicating the beginning of each phase. |
end |
timestamp indicating the end of each phase. |
duration_h |
phase duration in hours. |
duration_m |
phase duration in minutes. |
magnitude |
magnitude of stem-size changes in each phase. |
min |
minimum stem size within each phase. |
max |
maximum stem size within each phase. |
a data.frame
named cycle.df
containing, for all individual records, the following columns:
dmID |
dendrometer ID. |
cycle |
cycle number. |
phase |
cyclic phase (1: contraction, 2: expansion, 3: stem-radius increment, 4: full cycle). |
Olivier Bouriaud, Ernst van der Maaten and Marieke van der Maaten-Theunissen.
data(dmCD)
dm.phase <- phase_def(dmCD)
dm.stats <- cycle_stats(dmCD, dm.phase)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.