This course is designed to supplement and build on the content covered at <a href="http://moderndive.com">http://moderndive.com</a> and the slides at <a href="http://bit.ly/soc301-slides">http://bit.ly/soc301-slides</a>. It assumes that you have completed the <a href="https://www.datacamp.com/courses/free-introduction-to-r">Introduction to R course on DataCamp</a>.
Exploring the basics of R on a data set based on the fivethirtyeight.com "Most Police Don’t Live In The Cities They Serve" article.
Look into tidy data properties on data sets used in articles from fivethirtyeight.com in the fivethirtyeight R package
Scatter-plots & Line-graphs
Create and analyze different plots relating two numerical variables via the ggplot2 package using datasets in and derived from the fivethirtyeight R package
Make and interpret different plots relating one categorical variable to one numerical variable via the ggplot2 package using datasets in and derived from the fivethirtyeight R package
Generate and examine barplots displaying one categorical variable or relationships between multiple categorical variables via the ggplot2 package using datasets in and derived from the fivethirtyeight R package
Identifying and creating the appropriate plot based on different types of variables using the ggplot2 package
Filtering, Grouping, & Summarizing
Choose a subset of rows and summarize a data frame in total and across different levels of other variables using the dplyr package
Create a new column in a data frame, modify an existing column, and sort by one or more columns using the dplyr package. Review the main ideas of the Five Main Verbs of dplyr - filter, summarize, group_by, mutate, and arrange.
Supplement to ModernDive textbook
To supplement learning of the material covered at http://moderndive.com, this chapter provides a playground for you to work with the code and better understand what each of the gray chunks of R code throughout the book does.
Albert Y. Kim
Assistant Professor of Statistical & Data Sciences