Skip to content

Instantly share code, notes, and snippets.

@bensoltoff
Created October 3, 2016 15:59
Show Gist options
  • Save bensoltoff/ffd6582e5fbd9f345f72034bbfa31be5 to your computer and use it in GitHub Desktop.
Save bensoltoff/ffd6582e5fbd9f345f72034bbfa31be5 to your computer and use it in GitHub Desktop.
Practice transforming and exploring data using dplyr and ggplot2
# cm003_scorecard_practice.R
# Benjamin Soltoff
# Practice transforming and exploring data using the Department
# of Education's College Scorecard data set for 2013
# load necessary libraries
library(dplyr)
library(ggplot2)
# get dataset from rcfss library
# install.packages("devtools") # install package to install
# other packages from Github
# library(devtools)
# install_github("uc-cfss/rcfss") # install package from Github
library(rcfss)
data("scorecard")
scorecard
# Which were the 10 most expensive colleges in 2013?
# What percent of private, nonprofit schools are cheaper
# than the University of Chicago?
# Which type of college has the highest average SAT score?
# What is the relationship between cost and faculty salaries?
# How does a college's Pell Grant recipients effect the average
# student's education debt?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment