I am trying to only keep the last available observation for each variable, however, the issue is that different variables per country were measured in different years. My da