I have a large dataframe in R that looks like this:
ID year value 1 1980 1.5 2 1980 1.6 3 1982 1.4 4 1982 1.9 5 1984 2.0 6 1984 1.2
I want to