Typical R-language instances

Source: Internet
Author: User
Original Title: R cookbook author: Paul teetor Translator: Li Hongcheng Zhu wenjia Shen Yicheng series name: O 'Reilly boutique Books Series Press: Machinery Industry Press ISBN: 9787111420217 mounting Date: May 2013 publication date: Opening: 16 open pages: 1 version: 1-1 category: for more information about computers, and introduction to "classic instances of R language", computer books, and "classic instances of R language: o'reilly media spreads innovative knowledge through books, magazines, online services, surveys, research, and conferences. Since 1978, o'reilly has been a witness and promoter of cutting-edge development. Super geeks are building the future, and we are focusing on the really important technology trend-by enlarging those "tiny signals" to stimulate society's application of new technologies. As an active participant in the technical community, the development of o'reilly is full of advocacy, creation, and development of innovation. O 'Reilly brings a revolutionary "Animal book" to software developers; creates the first commercial website (GNN); organizes a far-reaching open source code summit, so that the Open Source Software movement is named like this; since its founding of MAKE magazine, it has become the main pioneer in the DIY revolution. As always, the company has established various forms to link information with people. O'reilly's meetings and summits have gathered a large number of super geeks and ambitious business leaders to draw a revolutionary idea of creating a new industry. As a technician, o'reilly now transfers the knowledge of pioneer experts to common computer users. Every o'reilly product, whether published through books, online services, or face-to-face courses, reflects the company's unshakable philosophy-information is the power to stimulate innovation. Directory R language classic instance Preface 1 Chapter 1 R getting started and get help 1st download and install R Software 71.1 start running R Software 81.2 enter R command 101.3 exit r151.5 interrupt R running program 161.6 view help documentation 171.7 get function help documentation 181.8 search help documentation 201.9 view R Software Package help information 211.10 get help via network 231.11 search for related functions and data packets 261.12 query the mail list 271.13 submit to the Mail List question 27 Chapter 3 Basic Knowledge 2nd display content 302.1 set variable 302.2 list all variables 34.2.4 Delete variable 322.3 Generate Vector 352.5 calculate basic statistic 362.6 generate series 372.7 vector comparison 402.8 select element 422.9 Vector calculation of 462.11 operator priority problem 482.12 definition function 502.13 Reduce input, get more commands 522.14 Common Errors 54 chapter 3rd R Software tutorial 583.1 get and set a working directory 583.2 save a workspace 593.3 view history Command records 603.4 save results from previous commands 603.5 Display Search Path 613.6 use Function 623.7 in the r package to use R's built-in dataset 643.8 to view the list of installed R packages 653.9 install R package 673.10 from the cran website set default cran website image 693.11 hide startup information 703.12 run script 703.13 run the r code 713.14 in batches to get and set the environment variable 743.15 find the r main directory 753.16 custom R 76 Chapter 76 Input and Output 4th use the keyboard input data 804.1 display fewer digits (or more number of digits) 824.3 redirect output results to a file 844.4 display file list 854.5 solve the problem of file opening failure in Windows 864.6 read fixed-width data records 874.7 read table data files 884.8 read CSV files 904.9 write CSV file 924.10 read table or CSV format data from the network 934.11 read HTML table data 944.12 read complex format data file 964.13 read data from MySQL database 1004.14 save and transfer target 102 chapter 5th Data Structure 1045.1 add data to the vector 1115.2 insert data into the vector 1125.3 understand the Cycle Rule 1135.4 build factor (that is, classification variable) 1155.5 Merge multiple vectors into a single vector and a parallel factor 1175.6 create a list 1185.7 list elements selected by location 1195.8 list elements selected by name 1215.9 create a name/value join table 1225.10 remove from the list element 1245.11 converts the list to vector 1255.12 and removes the value from the list as null (that is, null) element 1265.13 use conditions to remove list elements 1275.14 matrix initialization 1295.15 perform matrix operations 1305.16 assign descriptive names to rows and columns of the matrix 1315.17 select a row or a column 1325.18 use column data from the matrix initialize Data box 1335.19 initialize Data box 1345.20 Add rows to Data box 1365.21 pre-allocate Data box 1375.22 select data Box Column 1385.23 select data Box Column 1425.24 select data Box Column more easily row and column 1435.25 Modify column name of Data box 1455.26 edit data box 1465.27 remove na value from data box 1485.28 exclude column by name 1495.29 merge two data boxes 1505.30 Merge data box 1515.31 more convenient access Data box content 1525.32 conversion between basic data types 1545.33 conversion between different structured data types 156 chapter 6th data conversion 1596.1 vector grouping 1606.2 applying functions to each list element 1616.3 applying functions to each row 1636.4 apply the function to each column 1646.5 apply the function to group data 1666.6 apply the function to row group 1686.7 apply the function to a parallel vector or list 170 chapter 7th string and date 1727.1 get the string length 1747.2 connected string 1757.3 extract substring 1767.4 split string 1767.5 replace substring 1787.6 view all pairs of character 1797.7 in character string generate string 1797.8 get current date 1817.9 convert string to date 1817.10 convert date to string 1827.11 convert year, month, and day to date 1837.12. Obtain the date 1857.13. Extract part of the date 1857.14. Create a date sequence. Chapter 187. Probability 8th. Calculate the number of combinations. 1898.1 generate a combination. 1918.2 generate a random number. 1928.3 generate a renewable random number. 1938.4. generate a random sample 1968.6 generate a random sequence 1978.7 arrange a vector 1988.8 calculate the probability of a discrete distribution 1988.9 calculate the probability of a continuous distribution 2008.10 convert the probability to quantile 2018.11 draw a density function 203 chapter 9th introduction to statistics 2069.1 summary data 2089.2 calculate relative frequency 2109.3 factor tabulation and joined table creation 2119.4 test classification variable independence 2129.5 calculate the quantile (and quartile) of the dataset) 2129.6 calculate the inverse 2139.7 of quantile data and convert it to the mean value of the sample with Z score 2149.8 (t-test) 2159.9 mean confidence interval 2169.10 median confidence interval 2179.11 test sample ratio 2189.12 proportion confidence interval 2199.13 test normality 2209.14 travel test 2229.15 comparison two samples mean 2239.16 comparison two non-parameter sample locations 2259.17 significance of correlation coefficient 2269.18 proportional proportion of test group 2289.19 paired comparison between mean groups 2299.20 same distribution of two samples 230 chapter graphics 10th create scatter plot 23210.1 Add title and label 23410.2 add grid 23710.4 create multiple groups of scatter plots 23810.5 add legend 24010.6 draw a scatter plot regression plot 24210.7 plot of a multi-variable scatter plot 24310.8 create a scatter plot at each factor level 24410.9 create a bar chart 24610.10 Add a confidence interval to a bar chart 24810.11 color Bar Chart 24910.12 draw Line X and Y 25110.13 change line type, width or color 25310.14 draw multiple datasets 25410.15 add vertical line and horizontal line 25610.16 create box line chart 25710.17 for each factor level create box plot 25810.18 create histogram 25910.19 add density estimation to histogram 26110.20 create discrete histogram 26210.21 create normal Q-Q diagram 26410.22 create other Q-Q diagram 26510.23 draw variable with multiple colors 26610.24 draw function 269

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.