2006/3/12, Stefanie von Felten, IPW&IfU <[EMAIL PROTECTED]>: > Hi everyone, > > Is it possible to use tapply(x,y,mean) if not all groups of x by y are > of the same length (for example if you have one missing observation)?
Yes,It works. > I tried tapply(x,y,mean,na.omit=T) but it doesn't work! What does "it doesn't work" mean exactly?Can you give an example and the error msg? > Steffi > -- > --------------------------------- > Stefanie von Felten > Doktorandin > > ETH Zürich > Institut für Pflanzenwissenschaften > ETH Zentrum, LFW A 2 > > Telefon: 044 632 85 97 > Telefax: 044 632 11 53 > e-mail: [EMAIL PROTECTED] > http://www.ipw.agrl.ethz.ch/~svfelten/ > > und: > > Universität Zürich > Institut für Umweltwissenschaften > Winterthurerstrasse 190 > 8057 Zürich > > Telefon: 044 635 61 23 > Telefax: 044 635 57 11 > e-mail: [EMAIL PROTECTED] > http://www.unizh.ch/uwinst/homepages/steffi.html > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > -- 黄荣贵 Deparment of Sociology Fudan University ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
