HI! I have a panel data, I a need to edit one of the variables, or create a new one. The data looks like the following;
Id Year X1 X2 X3 ...
1 1951 45939 21574 2876
1 1956 60423 29990 4708
1 1957 64721 32510 5230
1 1958 68484 35218 6662
1 1959 71799 37598 6856
1 1960 76036 40341 8220
1 1961 79831 43173 9053
2 1951 45939 21574 2876
2 1956 60423 29990 4708
2 1957 64721 32510 5230
2 1958 68484 35218 6662
2 1959 71799 37598 6856
2 1960 76036 40341 8220
2 1961 79831 43173 9053
I need to change the values of x2 into new ones. I think is quite easy, but I kinda new in r
Thanks!