Arguments
ts
xts object to be aggregated, containing the intraday price series of a stock for one day.
FUN
function to apply over each interval. By default, previous tick aggregation is done.
on
character, indicating the time scale in which "k" is expressed. Possible values are: "secs", "seconds", "mins", "minutes","hours".
k
positive integer, indicating the number of periods to aggregate over. E.g. to aggregate a
xts object to the 5 minute frequency set k=5 and on="minutes".
marketopen
the market opening time, by default: marketopen = "09:30:00".
marketclose
the market closing time, by default: marketclose = "16:00:00".
tz
time zone used, by default: tz = "GMT".