[R] change value in one cell
jour4life
jour4life at gmail.com
Fri Jun 10 23:42:03 CEST 2011
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.
More information about the R-help
mailing list