[R] R eat my data
Mohamed Lajnef
Mohamed.lajnef at inserm.fr
Tue May 25 17:52:31 CEST 2010
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?
>
>
> cdu at 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.lajnef at inserm.fr
tel : 01 49 81 31 31 (poste 18470)
Sec : 01 49 81 32 90
fax : 01 49 81 30 99
More information about the R-help
mailing list