[R] Replace query
burgundy
sauburn at yahoo.com
Sun May 2 13:01:52 CEST 2010
Hi,
I'm trying to replace all values equal to 1 in one file (a) with the value
in the corresponding column in a separate file (b). Example below.
Any help (and brief notes if poss) much appreciated. Thanks!!
file a:
0,0,1,1,0
1,0,0,0,1
0,0,0,0,0
1,0,1,1,0
file b:
3,4,6,8,11
output request:
0,0,6,8,0
3,0,0,0,11
0,0,0,0,0
3,0,6,8,0
--
View this message in context: http://r.789695.n4.nabble.com/Replace-query-tp2122706p2122706.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list