View source: R/dendro.resample.R
dendro.resample | 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[,1:2], by='M', value='max') head(resample_M,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.