I need my data sorted two ways, and I don't know how to do the second without the first. Fairly new, so apologies if this is quite simple! Here's my head() table and the code I used to sort:
Malaria2 <- Malaria[order(Malaria$COUNTRY..DISPLAY.),] head(Malaria2)
I've gotten everything sorted alphabetically by country, which is perfect. But now I need to order by year within country. There are four years for each country: 2000, 2005, 2010, and 2013. So I need all the Algerias together in order of year, followed by all the Angolas together in order of year, etc. How do I order by YEAR..CODE. within the ordering I already have of COUNTRY..DISPLAY.?