Create new variable in R based on certain values 2 years in a row
I am trying to use the UCDP Battle-related Deaths Dataset, called BattleDeaths_v22_1_conf from https://ucdp.uu.se/downloads/ (See under UCDP Battle-Related Deaths Dataset version 23.1) I want to create a new variable or dataset that only includes countries with 1000 battle-related deaths 2 years in a row – and only after 2008. However, I end up with a … Read more