dendro.resample {dendRoAnalyst} | R Documentation |
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.
dendro.resample(df, by, value)
df |
dataframe with first column containing date and time in the format |
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. |
Dataframe with resampled data.
library(dendRoAnalyst)
data(nepa17)
# To resample monthly with maximum value
resample_M<-dendro.resample(df=gf_nepa17, by='M', value='max')
head(resample_M,10)