[R] convert factor data to numeric
Gavin Simpson
gavin.simpson at ucl.ac.uk
Mon Oct 18 10:33:42 CEST 2010
On Sat, 2010-10-16 at 16:16 -0700, andreas wrote:
> I had exactly the same problem with trying to import another .csv file. Turns
> out that I was working on a german computer that instead of using a comma
> when I saved it as .csv used a semicolon. Just saved it as a normal excel
> file, put it on a mates computer and saved it as .csv Worked a treat..
I no longer have the earlier messages in this thread, but isn't the
above what read.csv2() was designed to overcome? And you could always
cook your own with read.table() and specify the separator and decimal
for example if neither read.csv nor read.csv2 were exactly what you
wanted.
HTH
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list