[R] i'm so stuck with text file and contour plot

Jason Rupert jasonkrupert at yahoo.com
Wed Aug 5 13:48:47 CEST 2009


You can also try:
readLines(...)

This seems to be able to read in difficult txt files. 

Good luck.

--- On Wed, 8/5/09, hannesPretorius <talk2hannes at gmail.com> wrote:

> From: hannesPretorius <talk2hannes at gmail.com>
> Subject: Re: [R] i'm so stuck with text file and contour plot
> To: r-help at r-project.org
> Date: Wednesday, August 5, 2009, 4:09 AM
> 
> When I read the entire text file in I get the following
> message
> 
> > x <- read.table('c:/small.txt', sep='\t',
> header=TRUE)
> Warning message:
> number of items read is not a multiple of the number of
> columns.
> 
> thanks.
> 
> 
> 
> 
> 
> 
> hannesPretorius wrote:
> > 
> > Ok i feel pretty stupid.. been trying to read a text
> file that contains
> > heading in the first line in to R but cant. all i need
> to do is make a
> > contour plot for a friend but after weeks i feel like
> giving up.. i
> > included the first few lines of the file.. any help
> will be great
> > 
> > Thanks
> > 
> > Hannes http://www.nabble.com/file/p24777697/small.txt
> small.txt 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/i%27m-so-stuck-with-text-file-and-contour-plot-tp24777697p24823374.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org
> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>




More information about the R-help mailing list