[R] Help

From: claire pujoll <cpujoll_at_gmail.com>
Date: Thu 27 Jul 2006 - 20:37:47 EST


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. Received on Fri Jul 28 01:32:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 28 Jul 2006 - 20:17:58 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.