dendro.resample: Resampling temporal resolution of dendrometer and climate data
Description
This function is designed to change the temporal resolution of data. Depending on the objective, the user can define either maximum, minimum, or mean values to resample data in hourly, daily, weekly or monthly frequency.
Usage
dendro.resample(df, by, value)
Value
Dataframe with resampled data.
Arguments
df
dataframe with first column containing date and time in the format yyyy-mm-dd HH:MM:SS.
by
either H, D, W or M to resample data into hourly, daily, weekly or monthly resolution.
value
either max, min, mean or sum for the resampling value.
library(dendRoAnalyst)
data(nepa17)
# To resample monthly with maximum valueresample_M<-dendro.resample(df=gf_nepa17, by='M', value='max')
head(resample_M,10)