> length(count.fields("/home/cdu/operon/id_name_gh5.txt")) [1] 1932
It is 1932 lines when count in R On Tue, May 25, 2010 at 8:52 AM, Mohamed Lajnef <mohamed.laj...@inserm.fr>wrote: > Hi Changbin, > > Try to use this code in R to count the lines of your file without open it > > length(count.fields("id_name_gh5.txt")) > Regards Mohamed > > > > > Changbin Du a écrit : > > HI, Dear R community, >> >> My original file has 1932 lines, but when I read into R, it changed to >> 1068 >> lines, how comes? >> >> >> c...@nuuk:~/operon$ wc -l id_name_gh5.txt >> 1932 id_name_gh5.txt >> >> >> >> >>> gene_name<-read.table("/home/cdu/operon/id_name_gh5.txt", sep="\t", >>> >>> >> skip=0, header=F, fill=T) >> >> >>> dim(gene_name) >>> >>> >> [1] 1068 3 >> >> >> >> > > > -- > > > Mohamed Lajnef,IE INSERM U955 eq 15 > Pôle de Psychiatrie > Hôpital CHENEVIER > 40, rue Mesly > 94010 CRETEIL Cedex FRANCE > mohamed.laj...@inserm.fr > tel : 01 49 81 31 31 (poste 18470) > Sec : 01 49 81 32 90 > fax : 01 49 81 30 99 > -- Sincerely, Changbin -- Changbin Du DOE Joint Genome Institute Bldg 400 Rm 457 2800 Mitchell Dr Walnut Creet, CA 94598 Phone: 925-927-2856 [[alternative HTML version deleted]]
______________________________________________ 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.