> 
> Please look again at the help files for summarize and wtd.mean which 
> show how to do this.

This is from the summarize help file:

 FUN: a function of a single vector argument, used to create the
          statistical summaries for 'summarize'.  'FUN' may compute any
          number of statistics.  


It allows only one vector argument though it allows you to compute
multiple statistics using it. Please tell me if I am wrong. What would
you do it your function needs more than one vector arguments?

Vikas

______________________________________________
R-help@stat.math.ethz.ch 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