[R] Error: could not find function.

2010-11-19 Thread Lei Zhou
Dear all, I use TinnR to write commands for R. Why sometimes I can't call some basic functions, such as "anova", "var" ? Following is my command and reponse. > anova(addative,saturated,test='Chisq') Error: could not find function "anova" Thanks:) Regards, Lei [[alternative HTML

[R] How to pick out several infinite values when calculating means?

2010-11-16 Thread Lei Zhou
Dear r-help, I want to use tapply to calculate means for a variable. But there were several infinite values in the observations. How can I calculate means not considering these infinite values? Thanks in advance. Regards, Lei [[alternative HTML version deleted]] __