An essential library of basic commands you can copy and paste into R The powerful and open–source statistical programming language R is rapidly growing in popularity, but it requires that you type in commands at the keyboard rather than use a mouse, so you have to learn the language of R. But there is a shortcut, and that′s where this unique book comes in. A companion book to Visualize This: The FlowingData Guide to Design, Visualization, and Statistics , this practical reference is a library of basic R commands that you can copy and paste into R to perform many types of statistical analyses. Whether you′re in technology, science, medicine, business, or engineering, you can quickly turn to your topic in this handy book and find the commands you need. Comprehensive command reference for the R programming language and a companion book to Visualize This: The FlowingData Guide to Design, Visualization, and Statistics Combines elements of a dictionary, glossary, and thesaurus for the R language Provides easy accessibility to the commands you need, by topic, which you can cut and paste into R as needed Covers getting, saving, examining, and manipulating data statistical test and math and all the things you can do with graphs Also includes a collection of utilities that you′ll find useful Simplify the complex statistical R programming language with The Essential R Reference
Author(s): Mark Gardener
Publisher: John Wiley & Sons
Year: 2012
Language: English
Pages: 578
Tags: Библиотека;Компьютерная литература;R;
The Essential R Reference......Page 1
About the Author......Page 9
Acknowledgments......Page 13
Contents......Page 15
Introduction......Page 17
Theme 1: Data......Page 25
Types of Data......Page 27
Altering Data Types......Page 40
Testing Data Types......Page 42
Creating Data from the Keyboard......Page 46
Adding to Existing Data......Page 53
Importing Data from Text Files......Page 63
Importing Data from Data Files......Page 70
Saving Data......Page 73
Saving Data as a Text File to Disk......Page 74
Saving Data as a Data File to Disk......Page 83
Listing Data......Page 85
Data Object Properties......Page 98
Selecting and Sampling Data......Page 131
Sorting and Rearranging Data......Page 141
Summary Statistics......Page 145
Summary Tables......Page 160
Distribution of Data......Page 170
Density Functions......Page 172
Probability Functions......Page 176
Quantile Functions......Page 182
Random Numbers......Page 185
Theme 2: Math and Statistics......Page 191
Math......Page 193
Logic......Page 212
Complex Numbers......Page 218
Trigonometry......Page 226
Matrix Math......Page 230
Simple Summary Stats......Page 247
Tests of Distribution......Page 259
Differences Tests......Page 264
Parametric Tests......Page 265
Non-parametric......Page 276
Correlation......Page 291
Association and Goodness of Fit......Page 299
Analysis of Variance and Linear Modeling......Page 307
ANOVA......Page 308
Linear Modeling......Page 324
Miscellaneous Methods......Page 341
Clustering......Page 342
Ordination......Page 348
Time Series......Page 355
Non-linear Modeling and Optimization......Page 357
Theme 3: Graphics......Page 371
Making Graphs......Page 372
Types of Graphs......Page 373
Saving Graphs......Page 413
Adding Data......Page 422
Adding Lines......Page 428
Adding Shapes......Page 440
Adding Text......Page 446
Adding Legends......Page 456
Graphical Parameters......Page 460
Using the par Command......Page 461
Altering Color......Page 463
Altering Axis Parameters......Page 470
Altering Text Parameters......Page 477
Altering Line (and Box) Parameters......Page 480
Altering Plot Margins......Page 483
Altering the Graph Window......Page 486
Theme 4: Utilities......Page 499
Install......Page 500
Installing Packages......Page 501
Using the Program......Page 504
Additional Packages......Page 510
Programming......Page 514
Managing Functions......Page 515
Saving and Running Scripts......Page 522
Conditional Control......Page 526
Returning Results......Page 531
Error Trapping......Page 549
Constants......Page 551
Index......Page 553