I am working on a project dealing with Covid-19 Data. I have data that is updated daily from Our World in Data. The csv file is here: https://raw.githubusercontent.com/owid/covid-19-data/9ee33ac73942b2e37eb04014bf2a7a17a83998cf/public/data/owid-covid-data.csv
The data has several columns country, date, cases, etc.
What I am interested in is saving only the most recent row for each country and removing everything else. What would be the best way to go about this?
Currently, my code looks like this. I have recently made the transition to R from another program, so guidance is helpful even if this is a dumb question!
world.data < -read.csv("https://raw.githubusercontent.com/owid/covid-19-data/9ee33ac73942b2e37eb04014bf2a7a17a83998cf/public/data/owid-covid-data.csv")
world.data$iso_code < -NULL# Remove Country ISO Code
world.data$date < -as.Date(world.data$date, "%Y-%m-%d")
library(ggplot2)