A Book of Useful R Information
Preface
1
Introduction
2
Statistical Functions (for one variable)
2.1
These are from core R
2.2
These are from lehmansociology
2.3
These are from the Janitor package
2.4
From the RMisc package (Confidence intervals)
2.5
From the resample package (bootstrap confidence intervals)
2.6
Conclusion
3
Code
3.1
Assignment operator
3.2
Combine function
3.3
Pipe operator
3.4
Basic math operations
3.5
Comparison operators
3.6
AND and OR (logical operators)
4
Errors
4.1
Could not find function
4.2
Problems with variables
4.3
Problems with markdown
4.4
Other problems when knittng
5
Statistics for Multiple Variables
5.1
Using formula notation
5.1.1
Ordinary Linear Model
5.1.2
Generalized Linear Model
5.1.3
Parametric t test
5.2
Using group_by
5.3
Entry of variables
5.3.1
Cross tabs
6
Graphs
6.1
How ggplot works
6.1.1
ggplot()
6.1.2
Adding geom
6.1.3
Add titles and labels, modify axes
6.2
Common problems
6.2.1
unexpected symbol
6.2.2
invalid argument to unary operator
6.2.3
Error: unexpected ‘)’
7
Other
Published with bookdown
A Little R Book for Lehman Sociology Students
Chapter 7
Other
This chapter will have additional material.