[R] groupe averages error

Charles Raux Charles.Raux at let.ish-lyon.cnrs.fr
Fri Nov 24 10:41:29 CET 2000


I want to get subsets averaged on numeric variables number 5:13 but I 
get the error below that I cannot understand.
> is.factor(dat$Statut)
[1] TRUE
> s<-ave(dat[,5:13],dat$Statut)
Error in [<-.data.frame(*tmp*, , value = if (n) { : 
        Argument "i" is missing, with no default

Thanks in advance
---------------
Charles RAUX,
Laboratoire d'Economie des Transports
CNRS-Université Lumière Lyon 2-ENTPE
email : charles.raux at let.ish-lyon.cnrs.fr
http://www.ish-lyon.cnrs.fr/let
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list