Files corresponding to Short Course: Introduction to Data Science Using R
We’ll continue to work on the same .Rmd file from the previous exercise.
Edit your code chunk that reads the data in from a csv file and add the
argument col_types = cols(sex = col_character()) to the read_csv()
code.
dplyr::bind_rows()Write a quick note below your last R code chunk that mentions that we are going to combine the two data sets into one.
Use the bind_rows() function from dplyr to combine BabyNames &
BabyNamesSupp via bind_rows(BabyNames, BabyNamesSupp) into an
object called BabyNamesFull.
Filter the BabyNamesFull data to include only the names we are
interested in (Hint: use %in%). Just have this print out to the
console.
Continue the previous code to then reorder the rows descending on
the count variable.