Join data frames in R with inner_join and anti_join (CC254)
Pat shows how to join two data frames with inner_join
and how to identify samples that are in one data frame but not the other with anti_join
. Along the way he’ll also show some tricks with lubridate’s ymd
function and tidyr’s replace_na
function. Finally, Pat summarizes the average amount of precipitation over the past 30 days for each latitude and longitude over the past 100+ years. He also reviews how to use read_fwf
to read in a fixed-width formatted text file. The overall goal of this project is to highlight reproducible research practices using a number of tools. The specific output from this project will be a map-based visual that shows the level of drought across the globe.
Code
You can browse the state of the repository at the