So I have a data frame with 2 columns. In the first column (year) I have data from multiple years. In the second column (wage_base) I have data regarding the base wage.
I want to multiply all the rows of the data frame belonging to the year 2010, for example, by the value of 1.2 and want to change the data frame permanently with these new values. I tried this so far:
dt$wage_base <- dt$wage_base * 1.2
I am just missing the part where I state that I only want to multiply 1.2 by the values of the year 2010.
Thank you for your help!