Replace the specified column contents in the data frame with the values in the specified vector
Here are the sample code df <- data.frame( A = c(1, 2, 3, 4), B = c(5, 6, NA, 8), C = c(9, NA, -1, 11), D = c(-2, 13, 14, 15), E = c(16, -3, 18, NA) ) replace_vec <- c(100, 200, 300) I want to replace the column 3:5 which the value is… Read More Replace the specified column contents in the data frame with the values in the specified vector