Sample data:
dat1 <- structure(list(id = 1:3, des.1 = 4:6, x = 7:9, not = 10:12), class = "data.frame", row.names = c(NA,-3L))
dat2 <- structure(list(id = 1:3, descript = 4:6, y = 7:9, yes = 10:12), class = "data.frame", row.names = c(NA,-3L))
dat3 <- structure(list(id = 1:3, description = 4:6, x = 7:9, X4 = 10:12), class = "data.frame", row.names = c(NA,-3L))
dat1[1,2] <- "ERROR"
dat2[2,1] <- "ERROR"
dat_list <- list(dat1, dat2, dat3)
How can I set all instances of 'ERROR' to 0 within this list of dataframe? If possible, a plyr solution would be preferred.
Many thanks.