Contents
Chapter 1: Downloading R and Setting Up a File System
Installing and Updating Packages
The Three Parts of R: Objects, Operators, and Assignments
Chapter 3: Assignments and Operators
Example of Three Types of Assignment
Logical Operators and Functions
Matrix Operators and Functions
Atomic, Recursive, and Language Modes
Some Functions for Atomic Modes
The Common Recursive and Language Modes
The Time Series Classes: ts and mts
The Factor Classes: factor and ordered
The Data Frame Class: data.frame
The Date and Time Classes: Date, POSIXct, POSIXlt, and difftime
Names for Vectors, Matrices, Arrays, and Lists
Default Packages and Primitive Functions
Chapter 7: User-Created Functions
How to Enter a Function into R
An Outside Editor: dget() and Copying and Pasting
Chapter 8: How to Use a Function
Part 4: Inputting and Creating Data, Outputting Data and Output, and Manipulating Objects
Chapter 9: Importing and Creating Data
Reading Data into R, Including R Data Sets
The Functions read.table(), read.csv(), and read.delim()
Other Functions to Import Files
Probability Distributions and the Function sample()
Manually Entering Data and Generating Data with Patterns
Combinatorics and Grid Expansion
The Functions write.table() and write.csv()
Chapter 11: Descriptive Functions and Manipulating Objects
The Functions nrow(), ncol(), NROW(), and NCOL()
The Functions cbind() and rbind()
The sweep() and scale() Functions
The Functions aggregate(), table(), tabulate(), and ftable()
Brackets “{}” and the Semicolon “;”
The “if” and “if/else” Control Statements
The “repeat” Control Statement
The Statements “break” and “next”
Chapter 13: Examples of Flow Control
Nested ‘for’ Loops with an ‘if/else’ Statement
A ‘for’ Loop, ‘if’ Statement, and ‘next’ Statement
A ‘for’ Loop, a ‘repeat’ Loop, an ‘if’ Statement, and a ‘break’ Statement
Chapter 14: The Functions ifelse() and switch()
Part 6: Some Common Functions, Packages, and Techniques
Chapter 15: Some Common Functions
The Functions round(), signif(), and noquote()
The Functions format(), print(), plot(), and summary()
Chapter 16: The Packages base, stats, and graphics
Trigonometric and Hyperbolic Functions
Beta- and Gamma-Related Functions
Miscellaneous Mathematical Functions
Matrices, Arrays, and Data Frames
A Few Other Functions and Some Comments
Some Modeling Functions in stats
Clustering Algorithms and Other Multivariate Techniques
Chapter 17: Tricks of the Trade
Value Substitution: NA, NaN, Inf, and -Inf
If Statements and Logical Vectors
18.223.237.29