I am lloking for a solution to this problem in R. I have a data frame like this:
A1 A2 A3 A4
22 a 1 1
22 b 3 3
21 c 1 2
23 w 1 1
22 a 4 4
I look for a way to change the values in A1 column when A1 and A2 have a value of 22 and a. In this case when this cristeris is gotten A1 will have a value of 19, and the data frame will be like this:
A1 A2 A3 A4
19 a 1 1
22 b 3 3
21 c 1 2
23 w 1 1
19 a 4 4