Re: [R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Sarah Goslee
cli_1.0.0 > hms_0.3 tools_3.4.2 > [7] pillar_1.3.0 tibble_1.4.2 Rcpp_1.0.0 crayon_1.3.4 > utf8_1.1.4 fansi_0.2.3 > [13] rlang_0.3.0.1 > > -----Original Message- > From: Sarah Goslee > Sent: Wednesday, April 24, 2019 11:12 A

Re: [R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Doran, Harold
_1.0.0 crayon_1.3.4 utf8_1.1.4 fansi_0.2.3 [13] rlang_0.3.0.1 -Original Message- From: Sarah Goslee Sent: Wednesday, April 24, 2019 11:12 AM To: Doran, Harold Cc: r-help@r-project.org Subject: Re: [R] Read_fwf in package readr, double vs. numeric Hi, I can'

Re: [R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Sarah Goslee
Hi, I can't reproduce your problem: with readr 1.1.1 on linux, it works as expected. Letting read_fwf guess the types also works fine. (See below.) If you aren't running the current version of readr, update and retry. If you are, then we probably need more info, at least sessionInfo(). Sarah

[R] Read_fwf in package readr, double vs. numeric

2019-04-24 Thread Doran, Harold
Suppose I have the following data sitting in a fwf file 'foo.txt'. The point of this email is to ask the group how to properly read in the value in this pseudo-data "1e-20" using the read_fwf function in the package readr. 11e-201043 1712201043 1912201055 First, suppose I do it this way, where