Dear R members, Sorry for this question. I have a dataframe (please see the example) and i should do the following transformation:
DF a b c d e f g h i n 14 24 rcvf AG 5 2 1 0 2 1 58 42 grde AC 2 5 0 5 1 0 I should transforme my DF like : a b c d e f g h i n 14 24 rcvf A G 0 0 G G A G G G G G A A 58 42 grde A C C C 0 0 A A 0 0 A C A A i.e: when DF[i,j]==5 => DF[i,j] <- 0 0 When DF[i,j] == k (!=0) i should look to d column to do the transormation DF is 200000 * 10000 so i cant use loops. Thanks for your help, Claire [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch 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.