This question already has an answer here:
这个问题已经有了答案:
- How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning? 13 answers
- 我该如何处理“包装xxx”不可用(R版本x.y.z)“警告?”13个答案
what is the easy way to have diamonds package/dataset in my R environment. I am newbie using RStudio (3.0)
什么是在我的R环境中有钻石包装/数据集的简单方法。我是使用RStudio(3.0)的新手
> install.packages("diamonds")
Warning in install.packages :
package ‘diamonds’ is not available (for R version 3.0.0)
Warning in install.packages :
package ‘diamonds’ is not available (for R version 3.0.0)
I donot want to download and rebuild R as discussed in the following thread Cannot install R-forge package using install.packages
我不希望下载和重新构建R,因为下面的线程不能使用install.package安装R-forge包。
1 个解决方案
#1
12
The diamonds
data set is actually part of the excellent ggplot2
package (incidentally, you can find this out with ??diamonds
). The following should get you started:
钻石数据集实际上是优秀的ggplot2包的一部分(顺便说一下,你可以用钻石来发现它)。以下是你的开始:
install.packages('ggplot2')
library('ggplot2')
diamonds
#1
12
The diamonds
data set is actually part of the excellent ggplot2
package (incidentally, you can find this out with ??diamonds
). The following should get you started:
钻石数据集实际上是优秀的ggplot2包的一部分(顺便说一下,你可以用钻石来发现它)。以下是你的开始:
install.packages('ggplot2')
library('ggplot2')
diamonds