Liz Lucas [email protected]{.email} Andrew Ba Tran [[email protected]]{.email}
Learning to code with a language like R takes some time and effort on your part. We'll be covering a lot of foundation material this week, and sometimes this can feel like a firehouse of obscure information (e.g. what is an atomic vector and how is that different from a list) that you don't know what to do with yet. If you feel that way, that's OK! You will most likely have to go back and look this stuff up again. But it will help you get started today as we start flexing those coding muscles.
You should expect to feel some frustration, because everybody does. Frustration is OK so long as you can persevere through it. When you finally solve the problem and your code works it's a GREAT feeling.
install.packages(c("usethis", "tidyverse", "remotes"))
remotes::install_github("r-journalism/chjr", upgrade="always", quiet=TRUE)
usethis::use_course("https://github.com/r-journalism/chjr/archive/master.zip")
- Slideshow of R Basics
- Slideshow of Wrangling Data
- Slideshow of Tidying data
- Slideshow of Vizualizing data
- Tidyverse documentation: We'll be referring back to this a lot. Get used to reading documentation; it's an important skill!
- data: Some of the data we'll be using for this class is in the data folder of this repository
- practice scripts: There are exercises in the practice folder that you can work on your own time
- weird ggplots
- ggplot2 code gallery
- To practice creating and working with vectors and doing simple variable assignment, use R-Basics.Rmd
- To practice importing and the basics of data analysis (sorting, filtering, aggregating), use Importing-and-intro-to-data-analysis.Rmd
- Slides
learnr::run_tutorial("1_intro_a", "chjr")
learnr::run_tutorial("1_intro_b", "chjr")
learnr::run_tutorial("1_intro_c", "chjr")
- Slides
learnr::run_tutorial("2_a_exploring", "chjr")
learnr::run_tutorial("2_b_filter_select", "chjr")
learnr::run_tutorial("2_c_mutate_summarize", "chjr")
- Slides
learnr::run_tutorial("3_a_joining", "chjr")
learnr::run_tutorial("3_b_math_pivots", "chjr")
- Slides
learnr::run_tutorial("2_a_viz", "chjr")
learnr::run_tutorial("2_b_exploratory_viz", "chjr")