我正在尝试按照本教程使用R
http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat019.html
其中一个代码段引用了simple
包:
simple.lm(CYL,MPG)
但其中是那个包??
> library(simple)
Error in library(simple) : there is no package called ‘simple’
> library(Simple)
Error in library(Simple) : there is no package called ‘Simple’
> library(simple)
Error in library(simple) : there is no package called ‘simple’
> install.packages(simple)
Error in install.packages(simple) : object 'simple' not found
> install.packages(Simple)
Error in install.packages(Simple) : object 'Simple' not found
答案 0 :(得分:0)
语法为:
install.packages("simple")
但是this建议你需要做
install.packages("UsingR")
library(UsingR)
simple.lm( )