| convert.to.multidaily | R Documentation | 
Use this function to convert a time-series data (currently implemented: daily) to a time-series data with multi-day frequency.
convert.to.multidaily(variable, k, aggregateFun, fromEnd = TRUE)
variable | 
 A variable.  | 
k | 
 Number of days in multi-day frequency, must be positive.  | 
aggregateFun | 
 Function to aggregate data within each interval.  | 
fromEnd | 
 If the number of observations is not divisible by   | 
See the details section of the convert.to.daily function.
A variable with multi-day frequency.
startFreq <- f.daily(c(2022, 9, 1))
v <- variable(c(1,2,3,4,5,6,7,8), startFreq)
w <- convert.to.multidaily(v, 3, function(x)mean(x, na.rm=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.