Re: [R] converting character strings to numbers

2007-06-14 Thread Prof Brian Ripley
There is no support for 'thousands separators' in R's input/conversion routines, mainly because C has no support either (not even for output in the C standard). We could of course add our own layer, but as far as I am aware this is the first time this has come up. On Thu, 14 Jun 2007, Andrew J

Re: [R] converting character strings to numbers

2007-06-14 Thread Gabor Grothendieck
See: https://stat.ethz.ch/pipermail/r-help/2007-April/130912.html On 6/14/07, Andrew J Tyre <[EMAIL PROTECTED]> wrote: > I have a comma delimited text file in which many columns of numbers are > also quoted and have commas as well as decimals. I was surprised to find > read.csv() didn't import th

[R] converting character strings to numbers

2007-06-14 Thread Andrew J Tyre
I have a comma delimited text file in which many columns of numbers are also quoted and have commas as well as decimals. I was surprised to find read.csv() didn't import this seamlessly, even after messing around with the colClasses argument. I did find a solution to convert the character strin