all_cycleStats: Cycle stats for all sensors

Description Usage Arguments Value Author(s) Examples

View source: R/all_cycleStats.R

Description

Calculate cycleStats using the cycle_stats and produce single df for all sensor in you data. The dendrometeR package does not allow for this currently

Usage

1
all_cycleStats(dm.gpf, dm.phase, smooth.param = 1)

Arguments

dm.gpf

a data.frame with either gap-free or gap-filled dendrometer series as produced by fill_gaps.

dm.phase

a data.frame with numbers indicating the different stem-cyclic phases. Output of phase_def.

smooth.param

a numeric specifying the degree of smoothing. Defaults to 1 (no smoothing).

Value

The function returns a data.frame 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.

Author(s)

Brent Thorne

Examples

1
2
3
4
library(dendrometeR)
data(dmCD)
dm.phase <- phase_def(dmCD)
cycleStats.all <- all_cycleStats(dmCD,dm.phase)

brentthorne/ggdendrometeR documentation built on May 14, 2019, 3:09 a.m.