[R] Error: object is not a matrix
alkim at u.washington.edu
Fri Aug 23 00:00:40 CEST 2002
I have updated to R 1.5.1, but now get a new error, which appears to
have the same cause:
> AK.df <<- read.table("foo.data", col.names = c("Y","P","A","B","CLongFactorName"))
> AK.df$P <- as.factor(AK.df$P)
> AKanova.out <- aov(Y ~ A * B * CLongFactorName + Error(P + P:A + P:B +
P:CLongFactorName + P:A:B + P:A:CLongFactorName + P:B:CLongFactorName +
Error in eval(expr, envir, enclos) : couldn't find function "Error"
I can avoid the error by either of the following steps:
1) replace "CLongFactorName" with the shorter label "C"
2) reduce the number of terms in my Error formula.
Department of Psychology
University of Washington, Box 351525
Seattle, WA. 98195, USA
E-Mail: alkim at u.washington.edu; Tel: (206)543-2395
On Thu, 22 Aug 2002, Albert Kim wrote:
> I'm running 1.4.1. I'll try the latest version.
> Al Kim
> Research Scientist
> Department of Psychology
> University of Washington, Box 351525
> Seattle, WA. 98195, USA
> E-Mail: alkim at u.washington.edu; Tel: (206)543-2395
> On 22 Aug 2002, Peter Dalgaard BSA wrote:
> > Albert Kim <alkim at u.washington.edu> writes:
> > > I have reproduced this error in a number of ways, and the only common
> > > characteristic I can see to my actions is that the length of the call
> > > to 'aov' is always too long: either one of the variable names is too
> > > long, or I include too many error terms, etc...).
> > A similar error was fixed in 1.5.0. Which version are you using?
> > o aov() and model.tables() were failing on multistrata models with
> > excessively long Error formula. (PR#1315)
> > --
> > O__ ---- Peter Dalgaard Blegdamsvej 3
> > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
> > (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> > ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > 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
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 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
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