
- English
- ePUB (mobile friendly)
- Available on iOS & Android
The Essential R Reference
About this book
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.
.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Theme 1: Data
- Data Types
- Creating Data
- Importing Data
- Saving Data
- Viewing Data
- Summarizing Data
- Distribution of Data
Data Types
- Types of data
- The different types/forms of data objects
- Creating blank data objects
- Altering data types
- Switching data from one type to another
- Testing data types
- How to tell what type an object is
Types of Data
Command Name
array 
Common Usage
array(data = NA, dim = length(data), dimnames = NULL) Related Commands
Command Parameters
| data = NA | A vector to be used to create the array. Other objects are coerced to form a vector before making the array. |
| dim = length(data) | The dimensions of the array as a vector. A vector of 2 sets row and column sizes, respectively. |
| dimnames = NULL | A list of names for each dimension of the array. The default, NULL, creates no names. |
Examples
## Simple arrays > array(1:12) # Simple 12-item vector [1] 1 2 3 4 5 6 7 8 9 10 11 12 > array(1:12, dim = 12) # Set length explicitly [1] 1 2 3 4 5 6 7 8 9 10 11 12 > array(1:12, dim = 6) # Can set length to shorter than data [1] 1 2 3 4 5 6 > array(1:12, dim = 18) # Longer arrays recycle values to fill [1] 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 > array(1:24, dim = c(3, 4, 2)) # A 3-dimensional array , , 1 [,1] [,2] [,3] [,4] [1,] 1 4 7 10 [2,] 2 5 8 11 [3,] 3 6 9 12 , , 2 [,1] [,2] [,3] [,4] [1,] 13 16 19 22 [2,] 14 17 20 23...Table of contents
- Cover
- Theme 1: Data
- Theme 2: Math and Statistics
- Theme 3: Graphics
- Theme 4: Utilities
- About the Author
- Introduction