Learn R Programming

aqr (version 0.4)

aqHourlyStat: applies a function across hour slots. Internally, it iterates over 0:23 and selects all rows which fit into this hour.

Description

applies a function across hour slots. Internally, it iterates over 0:23 and selects all rows which fit into this hour.

Usage

aqHourlyStat(x, f = mean)

Arguments

x
the input xts object
f
the function to apply

Value

a matrix that contains hourly data