Learn R Programming

dendRoAnalyst (version 0.1.5)

daily.data: Calculation of daily statistics for dendrometer data

Description

This function calculates various statistics of dendrometer data on a daily basis. The daily statistics includes the daily maximum and minimum with their corresponding times and daily amplitude (difference between daily maximum and minimum). See King et al. (2013) for details.

Usage

daily.data(df, TreeNum)

Value

A dataframe with the daily statistics of the dendrometer data that contains:

ColumnsDescriptionDATE
The day of year in "yyyy-mm-dd".Min
The minimum value record for the corresponding day.Time_minThe time when minimum value recorded for the corresponding day.
MaxThe maximum value record for the corresponding day.Time_max
The time when maximum value recorded for the corresponding day.mean
The daily average value of the dendrometer reading.medianThe daily median value of the dendrometer reading.
amplitudeThe difference between daily maximum and daily minimum.Remarks

Arguments

df

dataframe with first column containing date and time in the format yyyy-mm-dd HH:MM:SS and the dendrometer data in following columns.

TreeNum

numerical value indicating the tree to be analysed. E.g. '1' refers to the first dendrometer data column in df.

References

King G, Fonti P, Nievergelt D, Büntgen U, Frank D (2013) Climatic drivers of hourly to yearly tree radius variations along a 6°C natural warming gradient. Agricultural and Forest Meteorology 168:36–46. tools:::Rd_expr_doi("10.1016/j.agrformet.2012.08.002")

Examples

Run this code
library(dendRoAnalyst)
data(nepa17)
daily_stats<-daily.data(df=nepa17, TreeNum=1)
head(daily_stats,10)

Run the code above in your browser using DataLab