包装“钻石”不可用(R版本3.0.0)[复制]

时间:2021-08-27 13:06:58

This question already has an answer here:

这个问题已经有了答案:

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