[R] loop

2010-06-01 Thread mhalsham
Can any one help it will be very kind, loop statements I have this table and some more records, I want to reshape it V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 TP53 Dis1 Dis2 Dis3 Dis4 Dis5 Dis6 DCI New1 New2 New3 New4 FDI Hi2 H3 H4 GHD I1 I3 I4 I5 I6 I7 I8 I want my new table or matrix to be some thing lik

Re: [R] R loop.

2010-04-23 Thread mhalsham
Hi Gustaf Thank you for the help, but I have over 1000 records, I can’t write it all in the code I didn’t get the code I’m sorry. Regards Mohamad Al-shammari -- View this message in context: http://r.789695.n4.nabble.com/R-loop-tp1979620p2051726.html Sent from the R help mailing list archive a

Re: [R] R loop.

2010-04-23 Thread mhalsham
Hi Yes I have managed to read the file (Table2.txt) The command I have used a<- read.table("table3.txt", fill=TRUE, header=FALSE) If I read the first row the result output will be like that. a[1,] Result would be V1 V2 V3V4V5 V6 V7 V8V9 V10 V11 V12 1

Re: [R] R loop.

2010-04-22 Thread mhalsham
Ok sorry for bad explanation from my side What I want. I have a txt file name is (table3.txt) this file contains 1293 rows and some of these row will have 1 column and some of them will have up to may be 40 column. For example

Re: [R] R loop.

2010-04-22 Thread mhalsham
Thanks a lot for the help, but it’s not what I needed. -- View this message in context: http://r.789695.n4.nabble.com/R-loop-tp1979620p2020386.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

[R] R loop.

2010-04-16 Thread mhalsham
Hi every one I’m new to R and I cant figure our how to use the loop to do the following task, any help would be very kind of every one. I have a file called (table3.txt) that contains over 1000 row and over 40 columns. So for example first row would look like that Deafness, EYA4, DIAPH1,