On Fri, Apr 23, 2010 at 11:14 AM, mhalsham <mhals...@bradford.ac.uk> wrote: > > 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 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 > 1 Deafness EYA4 DIAPH1 MYO7A TECTA COL11A2 POU4F3 MYH9 ACTG1 MYO6 GJB3 KCNQ4 > V13 V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 V25 > 1 GRHL2 GJB2 GJB6 TMC1 DSPP CRYM MYH14 DFNA5 COCH MYO1A TMPRSS3 CDH23 ATP2B2 > V26 V27 V28 V29 V30 V31 V32 > 1 STRC USH1C OTOA PCDH15 CLDN14 MYO3A >
Did you try my code in that case? I think that does what you wanted. /Gustaf ______________________________________________ R-help@r-project.org 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.