软件包"diamonds"不可用(对于R版本3.0.0) [英] package ‘diamonds’ is not available (for R version 3.0.0)
本文介绍了软件包"diamonds"不可用(对于R版本3.0.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的R环境中拥有Diamond包/数据集的简单方法是什么.我是RStudio(3.0)的新手
what is the easy way to have diamonds package/dataset in my R environment. I am newbie using 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)
我不想下载并重建R,如以下线程中所述 无法使用install.packages 安装R-forge软件包 >
I donot want to download and rebuild R as discussed in the following thread Cannot install R-forge package using install.packages
推荐答案
diamonds
数据集实际上是出色的ggplot2
包的一部分(顺便说一句,您可以在??diamonds
中找到它).以下内容将帮助您入门:
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:
install.packages('ggplot2')
library('ggplot2')
diamonds
这篇关于软件包"diamonds"不可用(对于R版本3.0.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文