Hi

I've resolved the following query by adding the option "stringsAsFactors =
FALSE"

Thanks

Nick Riches

---------- Forwarded message ----------
From: Nick Riches <nick.riches@gmail.com>
Date: 16 February 2011 12:16
Subject: read.table - reading text variables as text
To: r-help@r-project.org


Hi

I'm reading a CSV file using read.table, and it keeps importing a text
variable as a factor. To overcome this, I've used the as.is command
referring to the variable in question (called "stim")

data<-read.table(file.choose(), header=T, sep=",", as.is = "stim")

However, "stim" is still imported as a factor. I notice there are other
read.table options related to this issue, but the help files don't appear to
contain much detail on these.

Any help would be greatly appreciated.

Best wishes

Nick Riches

-- 
Lecturer in Speech and Language Pathology
Room 1.9
King George VI Building
Queen Victoria Road
University of Newcastle-upon Tyne
NE1 7RU

0191 222 8720



-- 
Lecturer in Speech and Language Pathology
Room 1.9
King George VI Building
Queen Victoria Road
University of Newcastle-upon Tyne
NE1 7RU

0191 222 8720

	[[alternative HTML version deleted]]

