On Mon, 16 Nov 2009 10:43:38 -0500 Andrew Miles <rstuff.mi...@gmail.com> 
wrote:
> Thanks!  Using the plyr package and the approach you outlined seems to  
> work well for relatively simple functions (like wtd.mean), but so far  
> I haven't had much success in using it with more complex descriptive  
> functions like describe {Hmisc}.

'describe' outputs a list, not just a vector. To get the actual values 
as vectors, you have to extract them, e.g.:

describe(x)$counts
describe(x)$values

-- 
Karl Ove Hufthammer

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to