R NOTES THAT NEED TO BE CLEANED UP
Class Assignment
Read this R Script and follow along with the video lecture
Basic Pct Chart in R
Task 1: Create an R script with the commands used to build these charts, including
loading of libraries, setting working directory, loading files
Task 2: Create a chart illustrating the percentage change for the top 10 schools, 2012-2016.
Export a .png file
Task 3: Create a chart illustrating the percentage change for the bottom 10 schools, 2012-2016
Do not chart Null Values! Your chart must have data for 10 schools
Export a .png file
Task 4: Upload the two charts in .png files and the R script to WordPress
by Thursday, 11:59 p.m. 30 points
Exercises
Using R to Shorten, Simplify the Master File
https://github.com/profrobwells/CovidFall2020/blob/master/Exercises/Slicing-Dicing%20Data%2010-14-2020.Rmd
Resources
**Dplyr Presentation*
Five basic verbs filter() select() arrange() mutate() summarize() plus group_by()
Due Friday
Flourish Workbook Updates
Reading
Machlis: Ch. 8 Analyze data by groups Transforming and Analyzing Data dplyr.pdf, Andrew Ba Tran, Washington Post:
https://github.com/profrobwells/CovidFall2020/blob/master/Reading/Transforming%20and%20Analyzing%20Data%20dplyr.pdf
http://learn.r-journalism.com/en/wrangling/dplyr/dplyr/
Weekend Memo
250 Words with Sources: Story Pitch #2
Assignment 2. Story with Interactive Graphic. Due Oct 21
Students will gather, analyze and visualize Arkansascovid data, primarily with R Studio. Students will produce publication-ready graphics in Flourish from data. Stories will be footnoted and ready for fact checking. R script due with story. Write the story Google Doc, Not Word. Make sure sharing is enabled.
Week #9: Slicing, Dicing with Dplyr
Monday Oct. 19
Stories Due Saturday, Oct 24 Schedule Demographic data Flourish R exercises R Exercises Due Wednesday
Schedule
https://docs.google.com/spreadsheets/d/1gvm3BuS83NRbsx0pS_PuYTFytN4sPS3B9Xhq-6gnu6c/edit#gid=0
Abby training on Data Update
–Exercises
Using R to Shorten, Simplify the Master File
https://github.com/profrobwells/CovidFall2020/blob/master/Exercises/Slicing-Dicing%20Data%2010-14-2020.Rmd
You are in Dplyr bootcamp!
DPLYR BOOT CAMP 5th Lesson 8-21-2020.Rmd Make a Dplyr Cheat Sheet
Read Before Next Class
Joining Dataframes in R
https://www.youtube.com/watch?v=gLg4D9bMIyc&t=13s
Ch. 7 Two or more data sets
Data Wrangling
http://learn.r-journalism.com/en/wrangling/
Joins in R:
https://bit.ly/2OFnGJ6
Wednesday, Oct. 21 R and Flourish
Agenda
White House Report Stories Due Saturday, Oct 24 R Tables Flourish
–Exercises
Using R for Math
https://github.com/profrobwells/CovidFall2020/blob/master/Exercises/Slicing-Dicing%20Data%2010-14-2020.Rmd