read.table doesn't read decimal places
1
0
Entering edit mode
@stefan-kroeger-4160
Last seen 10.1 years ago
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 thanks in advance ?stefan
• 636 views
ADD COMMENT
0
Entering edit mode
@martin-morgan-1513
Last seen 10 weeks ago
United States
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
ADD COMMENT

Login before adding your answer.

Traffic: 482 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6