[R] R eat my data

Mohamed Lajnef Mohamed.lajnef at inserm.fr
Tue May 25 18:12:31 CEST 2010


cheks the comments sent by  David!

M



Changbin Du a écrit :
> > 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.lajnef at inserm.fr <mailto:Mohamed.lajnef at 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?
>
>
>         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 <mailto: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
>
>
>
>
> -- 
> Sincerely,
> Changbin
> --
>
> Changbin Du
> DOE Joint Genome Institute
> Bldg 400 Rm 457
> 2800 Mitchell Dr
> Walnut Creet, CA 94598
> Phone: 925-927-2856
>
>


-- 


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