rename value for multiple rows based on other variable
问题 I've got a data frame with multiple rows for each participant. There is an error in some of their ids (for example, some are double). I wanted to assign them a new one like this dat[dat$participant == "36" & dat$date == "2020-06-07_12h33.46.880"] <- "101" I get the error message "duplicate subscripts for columns". Whats wrong with my command? I also tried dat$participant[dat$date== "2020-06-07_12h33.46.880"] <- "101" with no error but also no participant with these value appearing 回答1: The