Homework 2 in STAT400: Computational Statistics @ CSU
The City of Fort Collins maintains a web portal to host data sets that are available to the public in a format that citizens can easily search, filter, and utilize (https://www.fcgov.com/opendata/). In particular, they have released the earnings of city employees from 2010-2018.
Each of these data sets are included in this repo under the data/
folder.
R
(i.e. "data/[year]_Fort_Collins_City_Employee_Earnings.csv", see paste()
).Job Title
, Department
and Earnings
columns.job_title
, department
, and earnings
.job_title
and department
values lower case (see tolower()
and mutate_at()
).year
with the appropriate year.rbind
for binding rows of data frames together).Turn in in a pdf of your homework to canvas. Your .Rmd file on rstudio.cloud will also be used in grading, so be sure they are identical and reproducible.