Skip to content

aggregate

2 messages · Omar Lakkis, Achim Zeileis

#
I have a data frame of daily open, high, low and settle prices. How
can I aggregate this data weekly?
The data frame has five columns, the first is the date column and the
rest are the prices.
#
On Wed, 11 May 2005 15:44:41 -0400 Omar Lakkis wrote:

            
When you transform your data from data.frame to a "zoo" time series
object (in package zoo) then you can use the corresponding aggregate
method. See ?aggregate.zoo and the vignette in the package zoo.

Also look at the archives of the finance SIG mailing list which
recently discussed how to do this using the zoo or the its package.
Z