Day One
I. EXPLORE
1 Data Visualization with ggplot2First Steps
- Aesthetic Mappings
- Common Problems
- Facets
- Geometric Objects
- Statistical Transformations
- Postition Adjustments
- Coordinate systems
- The layered Grammar of Graphics
2 Workflow :Basics
- Coding Basics
- What’s in a Name?
- Calling Functions
3 Data Transformation with dplyr
Introduction
- Prerequisites
- nycflights13
- dplyr Basics
- Comparisons
- Logical Operators
- Missing Values
Filter Rows with filter()
Arrange Rows with arrange ()
Select Columns with select ()
Add new Variables with mutate ()
Grouped Summaries with summarize ()
- Combining Multiple Operations with the Pipe
- Values
- Counts
- Useful Summary Functions
- Grouping by Multiple Variables
- Ungrouping
Grouped Mutates (and Filters)
4 Workflow:Scripts
Day Two
1. Exploratory Data Analysis
Variation
- Visualizing Distributions
- Typical Values
- Unusual Values
Missing Values
Covariation
- A Categorical and Continuous Variable
- Two Categorical Variables
- Two Continuous Variables
Patterns and Models
ggplot2 Calls
Learning More
2.Workflow; Projects
- What Is Real
- Where Does Your Analysis Live?
- Paths and Directories
- RStudio Projects
II WRANGLE
3.Tibbles with tibble
- Creating Tibbles
- Tibbles versus data.frame
Printing
Subsetting
- Interacting with Older Code
4. Data Import with readr
Getting Started
- Compared to Base R
Parsing a Vector
- Numbers
- Strings
- Factors
- Dates, Date-Times, and Times
Parsing a File
- Strategy
- Problems
- Other Strategies
Writing to a File
Other Types of Data
5.Tidy Data with tidyr
Tidy Data
Spreading and Gathering
- Gathering
- Spreading
Separating and Pull
- Seperate
- Unite
Missing Values
Case Study
Nontidy Data
Day Three
1. Relational Data with dplyr
nycflights13
Keys
Mutating Joins
- Understanding Joins
- Inner Join
- Outer Join
- Duplicate Keys
- Defining the key Columns
Filtering Joins
Join Problems
Set Operations
2. Strings with stringr>
String Basics
- String Length
- Combining Strings
- Subsetting Strings
- Locales
Matching Patterns with Regular Expressions
- Basic Matches
- Excercises
- Anchors
- Excercises
- Character Classes and Alternatives
- Excercises
- Repetition
- Grouping and backreferences
Tools
- Detect Matches
- Exercises
- Extract Matches
- Exercises
- Grouped Matches
- Exercises
- Replacing Matches
- Exercises
- Splitting
- Exercises
- Find Matches
Other types of pattern
Other Uses of Regular Expressions
stringi
3. Factors with forcats
- Creating factors
- General Social Survey
- Modifying Factor Order
- Modifying Factor Levels
4. Dates and Times with lubridate
Creating Date/Times- From Strings
- From Individual Components
- From Other Types
- Getting Components
- Rounding
- Setting Components
- Durations
- Periods
- Intervals
III PROGRAM
Pipes with magrittr
Piping Alternatives- Intermediate Steps
- Overwrite the Original
- Function Composition
- Use the Pipe
When Not to Use the Pipe
Other Tools from magrittr
Day Four
1. Functions
When Should You Write a Function? Functions Are for Humans and Computers Conditional Execution- Conditions
- Multiple Conditions
- Code Style
- Choosing Names
- Checking Values
- Dot-Dot-Dot (…)
- Lazy Evaluation
- Explicit Return Statements
- Writing Pipeable Functions
2. Vectors
Vector Basics Important Types of Atomic Vector- Logical
- Numeric
- Character
- Missing Values
- Coercion
- Test Functions
- Scalars and Recycling Rules
- Naming Vectors
- Subsetting
- Visualizing Lists
- Subsetting
- Lists of Condiments
- Factors
- Dates and Date-Times
- Tibbles
3. iteration with purrr
For Loops For Loop Variations- Modifying an Existing Object
- Looping Patterns
- Unknown Output Length
- Unknown Sequence Length
- Shortcuts
- Base R
- Invoking Different Functions
- Predicate Functions
- Reduce and Accumulate
IV MODEL
4. Model Basics with modelr
A Simple Model Visualizing Models- Predictions
- Residuals
- Categorical Variables
- Interactions (Continuous and Categorical)
- Interactions (Two Continuous)
- Transformations
5. Model Building5> Why Are Low-Quality Diamonds More Expensive?
- Price and Carat
- A More Complicated Model
- Day of Week
- Seasonal Saturday Effect
- Computed Variables
- Time of Year: An Alternative Approach
Day Five
1.Many Models with purr and broom
gapminder- Nested Data
- List-Columns
- Unnesting
- Model Quality
- With Nesting
- From Vectorized Functions
- From Multivalued Summaries
- From a Named List
- List to Vector
- Unnesting
V. COMMUNICATE
2. R Markdown
R Markdown Basics Text Formatting with Markdown Code Chunks- Chunk Name
- Chunk Options
- Table
- Caching
- Global Options
- Inline Code
- Parameters
- Bibliographies and Citations
3. Graphics for Communication with ggplot2
Label Annotations Scales- Axis Ticks and Legend Keys
- Legend Layout
- Replacing a Scale
- Figure Sizing
- Other Important Options
4. R Markdown Formats
Output Options Documents Notebooks Presentations Dashboards Interactivity- htmlwidgets
- Shiny
5. R Markdown Workflow