From kevin at 0xdata.com  Sun Apr 27 01:03:36 2014
From: kevin at 0xdata.com (knormoyle)
Date: Sat, 26 Apr 2014 16:03:36 -0700 (PDT)
Subject: [Rd] Please make Pre-3.1 read.csv (type.convert) behavior
	available
In-Reply-To: <535C22C3.1080108@gmail.com>
References: <D56A602D-9044-400D-B12A-196A5EAEC05D@0xdata.com>
	<535B9868.8040700@gmail.com>
	<21339.42501.466132.822224@max.nulle.part>
	<CD8BE0B1-B423-4A78-999D-150B9543E4B4@0xdata.com>
	<2E36E30E-424B-4CC4-BA9C-6AEC2AAFB340@0xdata.com>
	<535C22C3.1080108@gmail.com>
Message-ID: <1398553416700-4689553.post@n4.nabble.com>

Hi Duncan,
I'm with Tom, don't want to be redundant but here's some extra info.
This made me think that the problem is not a 'theshold'. Any thoughts.
Also, if the "bad" number strings are entered at the R command prompt, they
are parsed correctly as the expected number. (not factors)

thanks,
-kevin


this works

0x1.ffadp-1

> df = read.csv("bad1.csv", header=F)
> str(df)
'data.frame':    1 obs. of  1 variable:
 $ V1: num 0.999


but this doesn't

0x1.ffa000000000dp-1

> df = read.csv("bad1.csv", header=F)
> str(df)
'data.frame':    1 obs. of  1 variable:
 $ V1: Factor w/ 1 level "0x1.ffa000000000dp-1 ": 1


this also works, which is one less trailing zero.

0x1.ffa00000000dp-1

>  df = read.csv("bad1.csv", header=F)
> str(df)
'data.frame':    1 obs. of  1 variable:
 $ V1: num 0.999 



--
View this message in context: http://r.789695.n4.nabble.com/Please-make-Pre-3-1-read-csv-type-convert-behavior-available-tp4689507p4689553.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Please make Pre-3.1 read.csv (type.convert) behavior available
knormoyle