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.

______________________________________________
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.

Reply via email to