dm.detrend {dendRoAnalyst} | R Documentation |
Detrend the dendrometer data
Description
This function detrends the dendrometer data either using first difference or using gam function from mgcv
package or the Gompertz function.
Usage
dm.detrend(df, method = "gam", CalYear)
Arguments
df |
dataframe with first column containing date and time in the format |
method |
either 'f_diff', 'gam' or 'gomp' indicating the method to detrend the dendrometer data column in df. |
CalYear |
numeric for year of calculation. If df has more than one year, assigning CalYear truncates the data of only that year. |
Value
A dataframe with the detrended dendrometer series.
Examples
library(dendRoAnalyst)
data(gf_nepa17)
detrended<-dm.detrend(df=nepa17, method='f_diff', CalYear=2017)
head(detrended,10)
[Package dendRoAnalyst version 0.1.5 Index]