IRIS Toolbox Reference Manual

convert

Convert tseries object to a different frequency

Syntax

Y = convert(X,NewFreq,...)
Y = convert(X,NewFreq,Range,...)

Input arguments

Output arguments

Options

Options for high- to low-frequency conversion (aggregation)

Options for low- to high-frequency conversion (interpolation)

Description

The function handle that you pass in through the 'method' option when you aggregate the data (convert higher frequency to lower frequency) should behave like the built-in functions mean, sum etc. In other words, it is expected to accept two input arguments:

The function will be called with the second input argument set to 1, as the data are processed en block columnwise. If this call fails, convert will attempt to call the function with just one input argument, the data, but this is not a safe option under some circumstances since dimension mismatch may occur.

Example