Problem interpolating marginal missing values in R
I have a data frame in R with country name, year and several variables as columns. For each country, I have data for my variables in the time span 1970-2020. The problem is that I have missing values on both ends of my dataset for most countries, so for the years 1970 and 1971 for country A or for 2019 and 2020 for country B.
So, for example: