RE: [R] aggregate

From: bogdan romocea <>
Date: Thu 12 May 2005 - 06:06:31 EST

Assuming dfr["day","o","h","l","c"] and day like 2004-12-28: dt <- strptime(as.character(dfr$day),format="%Y-%m-%d") + 0 wk <- format(dt,"%Yw%U")
aggr <- aggregate(list(dfr$o,dfr$h,dfr$l,dfr$c),list(wk),mean) colnames(aggr) <- etc

-----Original Message-----
From: Omar Lakkis [] Sent: Wednesday, May 11, 2005 3:45 PM
Subject: [R] aggregate

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. mailing list PLEASE do read the posting guide! mailing list PLEASE do read the posting guide! Received on Thu May 12 06:12:05 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:41 EST