[R] a question about replacing the value in the data.frame
karena
dr.jzhou at gmail.com
Wed Sep 8 22:48:58 CEST 2010
I have a data.frame as follows:
v1 v2 v3 v4 v5.....v100
1 1 0 0 1 2
2 1 2 1 0 1
1 1 1 2 1 0
. . . . . .
. . . . . .
1 2 2 1 1 0
so for this data set, what I wanna do is to replace all the '2' with '1',
how can I do it in an efficient way?
thank you,
karena
--
View this message in context: http://r.789695.n4.nabble.com/a-question-about-replacing-the-value-in-the-data-frame-tp2532010p2532010.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list