[R] Error in get(x, envir, mode, inherits)
Murray Jorgensen
maj at waikato.ac.nz
Wed Aug 25 01:28:37 CEST 1999
I have reproduced the error with a smaller set of commands and a smaller
data file on two PCs under both 0.64.1 and 0.64.2.
I have not reproduced it with an inbuilt data set (except where it has
previously occured with my problem data.)
> autoframe <- read.table("f:/maj/R&Splus/auto2.txt", header=T)
> attach(autoframe)
> slm <- lm(price ~ engsize, autoframe)
Error in get(x, envir, mode, inherits) : variable "FUN" was not found
> traceback()
[1] "get(as.character(f), mode = \"function\")"
[2] "match.fun(FUN)"
[3] "lapply(answer, length)"
[4] "unlist(lapply(answer, length))"
[5] "unique(unlist(lapply(answer, length)))"
[6] "sapply(xlev, is.null)"
[7] "lm(price ~ engsize, autoframe)"
> data(airquality)
> attach(airquality)
> slm<-lm(Ozone~Temp,airquality)
Error in get(x, envir, mode, inherits) : variable "FUN" was not found
I venture to include the dataset auto2.dat as it is not overly large:
brand id engsize power weight length pricem pricea auto nomanual price
1 1 1490 77 910 402 35750 0 0 0 35750
1 2 1712 87 910 402 39850 0 0 0 39850
1 3 1490 77 915 402 40350 0 0 0 40350
1 4 1779 88 1060 433 46850 0 0 0 46850
1 5 2492 115 1160 433 59250 0 0 0 59250
2 6 1781 66 1020 439 50590 52390 1 0 50590
2 7 1781 82 1050 439 56620 0 0 0 56620
2 8 1781 82 1140 439 79730 0 0 0 79730
2 9 1994 85 1060 446 62200 0 0 0 62200
2 10 2226 100 1200 446 79990 0 0 0 79990
2 11 2226 100 1060 442 69500 0 0 0 69500
2 12 2226 100 1200 442 87610 0 0 0 87610
2 13 1994 85 1250 479 71200 0 0 0 71200
2 14 2226 101 1250 479 0 89810 1 1 89810
2 15 2226 101 1330 479 107800 0 0 0 107800
2 16 2226 101 1290 479 0 101410 1 1 101410
2 17 2226 101 1370 479 115700 0 0 0 115700
2 18 2144 134 1300 481 0 130920 1 1 130920
2 19 2144 134 1410 481 144800 0 0 0 144800
2 20 2144 134 1450 481 154810 0 0 0 154810
2 21 2144 147 1300 440 160200 0 0 0 160200
3 22 1766 77 1010 432 49449 55402 1 0 49449
3 23 1766 77 1010 432 54690 58668 1 0 54690
3 24 1990 95 1080 433 60725 64925 1 0 60725
3 25 1990 95 1080 433 63821 67944 1 0 63821
Thanks to Peter Dalgaard and Brian Ripley for their suggestions so far.
Murray Jorgensen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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