I am trying to modify some values in data.tables in R. I have come up with a command which I thought would do the job, but instead it puts the same value in every row, while it should be dependent on the information in that row. Here is my command:I am trying to modify some values in data.table