Re: [R] read.table - reading text variables as text

2011-02-16 Thread Ista Zahn
Hi Nick, On Wed, Feb 16, 2011 at 7:28 AM, Nick Riches wrote: > Hi > > I've resolved the following query by adding the option "stringsAsFactors = > FALSE" Sure, that works, but it doesn't explain why as.is="stim" didn't work. Unfortunately I cannot reproduce: > dat <- data.frame(stim=letters[10]

[R] read.table - reading text variables as text

2011-02-16 Thread Nick Riches
Hi I've resolved the following query by adding the option "stringsAsFactors = FALSE" Thanks Nick Riches -- Forwarded message -- From: Nick Riches 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 f

[R] read.table - reading text variables as text

2011-02-16 Thread Nick Riches
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