dendro.resample {dendRoAnalyst}R Documentation

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)

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.

Value

Dataframe with resampled data.

Examples

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)


[Package dendRoAnalyst version 0.1.5 Index]