Hello all, I am wondering if there is a way to change the value of one cell in R. For instance let's say I have a hypothetical data frame that looks like this:
Obs X Y Z 1 1 0 1 2 0 0 1 3 1 1 1 4 0 1 1 5 1 1 0 6 0 0 0 I would like to change the value of the 4th observation in the Y column from 1 to 0. It should look like this: Obs X Y Z 1 1 0 1 2 0 0 1 3 1 1 1 4 0 0 1 5 1 1 0 6 0 0 0 Is it possible to change the value in one command? Thanks, Carlos -- View this message in context: http://r.789695.n4.nabble.com/change-value-in-one-cell-tp3589456p3589456.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.