Hi, All

I have a data frame as follows:

> attach(mf)
> names(mf)
[1] "centre"   "complex"  "appl"     "pool"     "month"    "alloc_gb"

I want to summarize this as follows:

agg<-summarize(alloc_gb,by=llist(centre,complex,appl,month),FUN=sum,
na.rm=TRUE)

That seems to run fine but there something odd about the output. The
first 3 by levels are as expected, for example

> levels(agg$centre)
[1] "B" "G"  "O"  "Q" 

However, month gets messed up somehow:

> levels(agg$month)
NULL

The original input data was in yearmon format:

> class(month)
[1] "yearmon"

I was expecting agg$month to have all the various values of mf$month.
What am I doing wrong here? Do I have to drop mf$pool somehow?

Jim Lane
Capacity Planner
RBC Financial Group
315 Front St W
6th Floor - H14
Toronto, Ontario CANADA
M5V 3A4
416-348-6024

Display of superior knowledge is as great a vulgarity
as display of superior wealth - greater indeed, inasmuch 
as knowledge should tend more definitely than wealth
towards discretion and good manners.

- H. W. Fowler, Modern English Usage


_______________________________________________________________________

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations.
Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.
If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.  

Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent.
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite.
Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.

	[[alternative HTML version deleted]]


