Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-25 Thread Xenimes
Thankyou very much, I managed to count he numbr of Markers 2 linked to Markers 3. And Markers 1 to Markers 3 with the aggregate function: with(data,aggregate(Marker1,list(Marker2=Marker2),length)) data2-with(data,aggregate(Marker1,list(Marker2=Marker2,Marker3=Merker3),length)) So, now is easy I

Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-24 Thread David Winsemius
On May 23, 2011, at 10:52 AM, CAR wrote: Hi everybody!! I'm trying to assign boolean values to a column in a matrix depending on the number of times present in another column. I have no clue, I have been 2 days looking for a way, if somebody knows what kind of functions I need to use I

Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-24 Thread Xenimes
Thank you David and Steve, Yes all this data are already in R and in csv files. Sorry for not being clear. I have this: Codes1and3[1:5,c(1:5)] Mark_2 pop Mark_1 Mark_3 age 1 P A1 139 alpha 2 2 P A1 140 alpha 2 3 P A1

[R] How do I assign boolean (o,1) values to a column?

2011-05-23 Thread CAR
Hi everybody!! I'm trying to assign boolean values to a column in a matrix depending on the number of times present in another column. I have no clue, I have been 2 days looking for a way, if somebody knows what kind of functions I need to use I will really apreciate it. example: Color Type

Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-23 Thread Bert Gunter
Hi: On Mon, May 23, 2011 at 7:52 AM, CAR acas...@gmail.com wrote: Hi everybody!! I'm trying to assign boolean values to a column in a matrix depending on the number of times present in another column. I have no clue, Sorry, I don't have time to help. But have you read The Introduction to R

Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-23 Thread Xenimes
Thanks for the tip!!! I read the R manual and some other basic helps. The problem here is I dont know even the name of what I´m looking for -- View this message in context: http://r.789695.n4.nabble.com/How-do-I-assign-boolean-o-1-values-to-a-column-tp3544304p3545484.html Sent from the R

Re: [R] How do I assign boolean (o,1) values to a column?

2011-05-23 Thread Steve Lianoglou
Hi CAR, On Mon, May 23, 2011 at 10:52 AM, CAR acas...@gmail.com wrote: Hi everybody!! I'm trying to assign boolean values to a column in a matrix depending on the number of times present in another column. I have no clue, I have been 2 days looking for a way, if somebody knows what kind of