Re: [R] reading "surfer" files

2010-02-23 Thread RagingJim
Surprisingly in this case, the simplest solution was the best one. Using read.table(filename,skip=4) was all it took. Cheers :) -- View this message in context: http://n4.nabble.com/reading-surfer-files-tp1566943p1567003.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] reading "surfer" files

2010-02-23 Thread David Winsemius
On Feb 23, 2010, at 10:23 PM, RagingJim wrote: To the R experts, I am currently playing with a program which was designed so that the outputs are to be read in "Surfer". I do not have the program, but the files, can but put into excel and graphed. I figured i could do the same thing wit

Re: [R] reading "surfer" files

2010-02-23 Thread RagingJim
The problem is, if I use read.table I get "Error in read.table("HeatLow_maphhs000.1994010101") : duplicate 'row.names' are not allowed" if I try "table<-read.table("HeatLow_maphhs000.1994010101",sep=" ")" Then I get: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.s

Re: [R] reading "surfer" files

2010-02-23 Thread Moshe Olshansky
Check read.table (?read.table). --- On Wed, 24/2/10, RagingJim wrote: > From: RagingJim > Subject: [R] reading "surfer" files > To: r-help@r-project.org > Received: Wednesday, 24 February, 2010, 3:23 PM > > To the R experts, > > I am currently playing wi

[R] reading "surfer" files

2010-02-23 Thread RagingJim
To the R experts, I am currently playing with a program which was designed so that the outputs are to be read in "Surfer". I do not have the program, but the files, can but put into excel and graphed. I figured i could do the same thing with R. If I open the file with excel, and put the text int