Skip to content
Prev 2390 / 15274 Next

question on zoo data manipulation

On Mon, 14 Apr 2008, Manoj wrote:

            
The data is not really a straightforward time series but has more
structure, like a panel data set. Hence, I wouldn't try to represent it in
zoo in its un-aggregated form. Instead I would put it into a data.frame
using appropriate classes for the colums, e.g., "Date" for the Date and
"factor" for the BrokerName etc.

Then I would use the aggregate() method for data.frames to accomplish the
aggregation you look for. You can then collect various aggregations of
your data in a zoo object (if you've got unique Dates after aggregation).

hth,
Z