dm.detrend {dendRoAnalyst} | R Documentation |
This function detrends the dendrometer data either using first difference or using gam function from mgcv
package or the Gompertz function.
dm.detrend(df, method = "gam", CalYear)
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. |
A dataframe with the detrended dendrometer series.
library(dendRoAnalyst)
data(gf_nepa17)
detrended<-dm.detrend(df=nepa17, method='f_diff', CalYear=2017)
head(detrended,10)