Re: [R] Reading .csv file under linux

2008-01-23 Thread David Scott
Just as an update on encoding (which may or may not be of interest). I changed the read.csv command for three .csv files I was reading to specify the encoding to be encoding="CP1252" and all 3 files were read in without problems on linux. Last night I swapped the analysis back on to my windo

Re: [R] Reading .csv file under linux

2008-01-22 Thread Peter Dalgaard
David Scott wrote: > I am a total dunce when it comes to encodings though. How do you find the > encoding of a file? > You don't. Either you know it, or you are up the proverbial creek (or roof). The "8-bit ascii" encodings is one of the greater computer crimes of the last century precisely b

Re: [R] Reading .csv file under linux

2008-01-22 Thread Prof Brian Ripley
On Wed, 23 Jan 2008, David Scott wrote: > On Tue, 22 Jan 2008, Prof Brian Ripley wrote: > >> On Wed, 23 Jan 2008, David Scott wrote: >> >>> >>> I have encountered a problem with reading a .csv file on a linux box. I >>> can read the file on my windows machine (under XP) but on the linux box it >

Re: [R] Reading .csv file under linux

2008-01-22 Thread David Scott
On Tue, 22 Jan 2008, Prof Brian Ripley wrote: > On Wed, 23 Jan 2008, David Scott wrote: > >> >> I have encountered a problem with reading a .csv file on a linux box. I >> can read the file on my windows machine (under XP) but on the linux box it >> gives : >> >>> patients <- read.csv("../Patient

Re: [R] Reading .csv file under linux

2008-01-22 Thread Prof Brian Ripley
On Wed, 23 Jan 2008, David Scott wrote: > > I have encountered a problem with reading a .csv file on a linux box. I > can read the file on my windows machine (under XP) but on the linux box it > gives : > >> patients <- read.csv("../Patients.csv", header = FALSE, > + col.names

[R] Reading .csv file under linux

2008-01-22 Thread David Scott
I have encountered a problem with reading a .csv file on a linux box. I can read the file on my windows machine (under XP) but on the linux box it gives : > patients <- read.csv("../Patients.csv", header = FALSE, + col.names = patientsNames) Error in type.convert(data[[i]],