[BioC] read.table doesn't read decimal places

Martin Morgan mtmorgan at fhcrc.org
Thu Jul 8 18:40:44 CEST 2010


On 07/08/2010 07:36 AM, Stefan Kroeger wrote:
> Hello,
> 
> maybe anybody can give me a hint, how to read a csv/tsv file using
> read.table, where the table contains columns with character and double
> values, as in following example:
> 
>        V1      V2      V3
> identifier      8.82427663558682        8.3543072605016 8.43568898178512
> 
> when I use:
>> my_tab <- read.table(infile, header=TRUE, sep="\t",quote="")
> 
> numeric values are cut after 6th decimal place
> identifier      8.824277     8.354307     8.435689

They are displayed but not stored this way; use

  options(digits=12)

etc to see additional detail

Martin


> 
> thanks in advance
>  stefan
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor


-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793



More information about the Bioconductor mailing list