|
书很薄,不到100页。
This Brief provides a roadmap for the R language and programming environment with signposts to further resources and documentation.
Cover
A Tiny Handbook of R
ISBN 9783642179792
Acknowledgment
Contents
1 Introduction to R
Abstract
1.1…Why Command Lines and Scripts?
1.1.1 The R Console
Using R as a Calculator
1.1.2 Variables
1.1.3 Functions
1.2…Finding Functions and Getting Help
1.2.1 Libraries
1.2.2 Packages
1.2.3 Finding Functions
1.2.4 Getting Help
Usage
Value
1.3…R Projects
1.3.1 Saving Your Session
1.3.2 Scripts
2 Data Structures
Abstract
2.1…Data Structures
2.1.1 Vectors, Matrices, and Arrays
2.1.2 Data Frames and Lists
2.1.3 Creating Data
Creating Vectors
Creating Matrices and Arrays
Creating Data Frames and Lists
Creating Character Data
2.1.4 Sampling Data
2.1.5 Reading Data
2.2…Operations on Vectors and Matrices
2.2.1 Arithmetic Functions
2.2.2 Descriptive Functions
2.2.3 Operators and Expressions
Vector Arithmetic
Matrix Arithmetic
Conditional Expressions
Arithmetic With Logical Vectors
2.3…Factors
2.3.1 Making Factors
2.3.2 Operations on Factors
2.3.3 Re-ordering and Re-labelling
2.4…Indexing
2.4.1 Indexing by Name
Attaching Data Frames
2.4.2 Indexing by Number
2.4.3 Inserting and Deleting Rows or Columns
2.4.4 Indexing with Factors
2.4.5 Conditional Indexing
Conditioning by String Pattern Matching
Indexing with Logical Vectors
2.4.6 Sorting
2.5…Reshaping
2.5.1 Stacking and Unstacking
2.5.2 Reshaping: Wide and Long
2.5.3 Merging
2.6…Missing Values
2.6.1 Recoding Missing Values
2.6.2 Operations with Missing Values
2.6.3 Counting and Sorting Missing Values
2.6.4 Handling Missing Values
2.7…Mapping Functions
2.7.1 Repeated Evaluation
2.7.2 Applying Functions
Passing Arguments to the Mapped Function
2.8…Writing Functions
2.8.1 Anonymous Functions
2.8.2 Optional Arguments
3 Tables and Graphs
Abstract
3.1…Tables
3.1.1 Frequency Tables
Cross Tabulation
Proportions and Percentages
3.1.2 Tables of Cell Means and Other Summaries
3.1.3 Saving Tables
3.2…Graphs
3.2.1 Base Graphics
High Level Graphics
Low Level Graphics
Graphics Parameters
Grouping Points by Colour or Shape
Adding a Legend
Identifying Plotted Points Interactively
3.2.2 Lattice Graphics
3.2.3 Multiple Plot Layout
Base Graphics
Lattice Graphics
3.2.4 Saving Graphics
4 Hypothesis Tests
Abstract
4.1…Probability Distributions
4.2…Hypothesis Tests
4.2.1 How to Run a t test
5 Linear Models
Abstract
5.1…Model Formulas
5.1.1 Formula and Data Frame
5.1.2 Updating Model Fits
5.2…General Linear Models
5.2.1 Regression Diagnostics
5.2.2 Testing the Regression Coefficients
5.2.3 Prediction
5.2.4 Stepwise Regression
5.2.5 Extracting Information from the Fit Object
5.2.6 Residualizing
5.3…ANOVA
5.3.1 ANOVA Tables
One-Way ANOVA
Two-Way Factorial ANOVA
Model Comparison
5.3.2 Comparisons
Post-hoc Tests
Planned Comparisons
Testing the Comparisons
Assigning Contrasts
Assigning a Contrasts Matrix
5.4…Learning R
|