[R] Error in get(x, envir, mode, inherits)

Murray Jorgensen maj at waikato.ac.nz
Tue Aug 24 07:41:32 CEST 1999


Dear R list,

members of my course have encountered the following error message:

> slm <- lm(price ~ engsize, autoframe)
Error in get(x, envir, mode, inherits) : variable "FUN" was not found
[more context is given in the fuller listing below].

Once the error is encountered it seems to persist; for example early in one
session:

> summary(blin.fit)

Call:
lm(formula = Response ~ Row + Column, data = binframe)

Residuals:
       Min         1Q     Median         3Q        Max 
-1.417e+00 -5.833e-01 -4.025e-16  6.042e-01  1.083e+00 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept)  10.3333     0.7169  14.415 6.98e-06 ***
Rowii         4.7500     0.7169   6.626  0.00057 ***
Rowiii       -4.7500     0.7169  -6.626  0.00057 ***
ColumnII      4.3333     0.8278   5.235  0.00195 ** 
ColumnIII     2.3333     0.8278   2.819  0.03040 *  
ColumnIV      1.0000     0.8278   1.208  0.27247    
---
Signif. codes:  0  `***'  0.001  `**'  0.01  `*'  0.05  `.'  0.1  ` '  1 

Residual standard error: 1.014 on 6 degrees of freedom
Multiple R-Squared: 0.9717,     Adjusted R-squared: 0.9482 
F-statistic: 41.27 on 5 and 6 degrees of freedom,       p-value: 0.0001434 


but later on, after the error in creating slm:
> summary(blin.fit)

Call:
lm(formula = Response ~ Row + Column, data = binframe)

Residuals:
Error in get(x, envir, mode, inherits) : variable "FUN" was not found



Finally, here are the commands and output leading up to the first instance
of the error:  [any help greatly appreciated!]


> autoframe <- read.table("z:/321 Folder/Data/auto.dat", header=T)
> dim(autoframe)
[1] 289  11
> summary(autoframe)
      brand             id           engsize         power
weight    
 Min.   : 1.00   Min.   :  1.0   Min.   : 796   Min.   : 29.00   Min.   :
615  
 1st Qu.: 7.00   1st Qu.: 73.0   1st Qu.:1468   1st Qu.: 57.00   1st Qu.:
890  
 Median :16.00   Median :148.0   Median :1949   Median : 77.00   Median
:1060  
 Mean   :16.38   Mean   :146.7   Mean   :2007   Mean   : 86.37   Mean
:1081  
 3rd Qu.:23.00   3rd Qu.:220.0   3rd Qu.:2226   3rd Qu.:109.00   3rd
Qu.:1250  
 Max.   :37.00   Max.   :294.0   Max.   :6750   Max.   :235.00   Max.
:2360  
      length          pricem           pricea            auto       
 Min.   :320.0   Min.   :     0   Min.   :     0   Min.   :0.0000  
 1st Qu.:403.0   1st Qu.: 19570   1st Qu.:     0   1st Qu.:0.0000  
 Median :436.0   Median : 26530   Median :     0   Median :0.0000  
 Mean   :429.4   Mean   : 39200   Mean   : 27840   Mean   :0.4291  
 3rd Qu.:454.0   3rd Qu.: 49500   3rd Qu.: 37700   3rd Qu.:1.0000  
 Max.   :520.0   Max.   :290000   Max.   :310000   Max.   :1.0000  
     nomanual          price       
 Min.   :0.0000   Min.   : 13990  
 1st Qu.:0.0000   1st Qu.: 24690  
 Median :0.0000   Median : 35620  
 Mean   :0.1661   Mean   : 54510  
 3rd Qu.:0.0000   3rd Qu.: 63500  
 Max.   :1.0000   Max.   :310000  
> attach(autoframe)
> slm <- lm(price ~ engsize, autoframe)
Error in get(x, envir, mode, inherits) : variable "FUN" was not found
> summary(slm)
Error: Object "slm" not found
>



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