[R] R eat my data

Mohamed Lajnef
Tue, 25 May 2010 15:52:31 -0000

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