[R-sig-Debian] Is aggregate() function changing?

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Tue Mar 24 05:44:09 CET 2009

Hi R developers and debian users:

Finally I found how to work with aggregate() function
on the last patched version fo R.

I you use this command it fails:
 aggregate(state.x77, list(Region = state.region), mean)

But if you modify it in this way, it works!:

 aggregate(state.x77, list(Region = state.region), function(x) mean(x) )

Is it necesary to change the example?

What is changing in aggregate() function?

Thank you for your attention.


R version 2.8.1 Patched (2009-03-18 r48193) 


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

More information about the R-SIG-Debian mailing list