Re: [R] MASS fitdistr with plyr or data.table?

From: Justin <>
Date: Wed, 27 Apr 2011 21:29:21 +0000

> require(MASS)
> out <- with(weib.test.too, tapply(wind_speed, site, function(x) fitdistr(x,
> 'weibull')))
> estimates <- t(sapply(out, "[[", 1))
> SDs <- t(sapply(out, "[[", 2))
> estimates
> SDs
> HTH,
> Jorge

That'll do nicely and is much more elegant than my current method. I was sure there would be some fancy one liner from plyr though!

Thanks a bunch,
Justin mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 27 Apr 2011 - 21:44:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Apr 2011 - 22:00:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive