如何查看R中可获取的数据集有哪些?
2016-01-30 11:30
435 查看
Once you start your R program, there are example data sets available within R along with loaded packages. You can list the data sets by their names and then load a data set into memory to be used in your statistical
analysis. For example, in the book "Modern Applied Statistics with S" a data set called phones is used in Chapter 6 for robust regression and we
want to use the same data set for our own examples. Here is how to locate the data set and load it into R.
Command library loads the package MASS (for Modern Applied Statistics with S) into memory. Command data() will list all the datasets in loaded packages. The command data(phones) will
load the data set phones into memory.
analysis. For example, in the book "Modern Applied Statistics with S" a data set called phones is used in Chapter 6 for robust regression and we
want to use the same data set for our own examples. Here is how to locate the data set and load it into R.
Command library loads the package MASS (for Modern Applied Statistics with S) into memory. Command data() will list all the datasets in loaded packages. The command data(phones) will
load the data set phones into memory.
library(MASS) data() Data sets in package 'datasets': AirPassengers Monthly Airline Passenger Numbers 1949-1960 BJsales Sales Data with Leading Indicator BJsales.lead (BJsales) Sales Data with Leading Indicator BOD Biochemical Oxygen Demand CO2 Carbon Dioxide uptake in grass plants ChickWeight Weight versus age of chicks on different diets DNase Elisa assay of DNase EuStockMarkets Daily Closing Prices of Major European Stock Indices, 1991-1998 ........ (more data sets in between are omitted.) uspop Populations Recorded by the US Census volcano Topographic Information on Auckland's Maunga Whau Volcano warpbreaks The Number of Breaks in Yarn during Weaving women Average Heights and Weights for American Women Data sets in package 'MASS': Aids2 Australian AIDS Survival Data Animals Brain and Body Weights for 28 Species ... (more data sets are omitted here) oats Data from an Oats Field Trial painters The Painter's Data of de Piles petrol N. L. Prater's Petrol Refinery Data phones Belgium Phone Calls 1950-1973 quine Absenteeism from School in Rural New South Wales ... (more data sets are omitted here) Use 'data(package = .packages(all.available = TRUE))' to list the data sets in all *available* packages. data(phones) phones $year [1] 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 $calls [1] 4.4 4.7 4.7 5.9 6.6 7.3 8.1 8.8 10.6 12.0 13.5 14.9 [13] 16.1 21.2 119.0 124.0 142.0 159.0 182.0 212.0 43.0 24.0 27.0 29.0
相关文章推荐
- php中将指针移动到数据集初始位置的实现代码[mysql_data_seek]
- c#的dataset离线数据集示例
- 向大家推荐一个收集整理正则表达式的网站
- 最严谨的校验email地址的正则表达式及各种语言对应版
- 用jquery和json从后台获得数据集的代码
- JAVA中正则表达式匹配,替换,查找,切割的方法
- iOS中使用正则表达式NSRegularExpression 来验证textfiled输入的内容
- 处理Plot rendering error
- R语言书籍的学习路线图
- R语言学习笔记 三
- R语言学习笔记 四
- R语言学习笔记 五
- 20120919_01
- 20120919_02
- 20120919_3
- Review JDBC
- Win2003SN
- 解决rJava无法找到jvm.dll的问题
- System Center 2012
- How to configure a RPC Client Access