I've used read.table to read a file that contains numbers such as 0.00001
read.table
when I write them back with write.table those numbers appear as 1e-5
write.table
How can I keep the old format?
I would just change the scipen option before calling write.table. Note that this will also change how numbers are displayed when printing to the console.
scipen
options(scipen=10) write.table(foo, "foo.txt") options(scipen=0) # restore the default
1.4m articles
1.4m replys
5 comments
57.0k users