Re: [R] numerical or not?

2010-04-26 Thread Ted Harding
On 26-Apr-10 21:19:51, Laetitia Schmid wrote: > Hi, > I've had a little problem for several weeks now. It is annoying and > therefore I will ask for help: > When I write a script with several iterations, I make it write out a > text file to save the data during the run. For example I write: > if (i

Re: [R] numerical or not?

2010-04-26 Thread John Kane
chmid wrote: > From: Laetitia Schmid > Subject: [R] numerical or not? > To: r-help@r-project.org > Received: Monday, April 26, 2010, 5:19 PM > Hi, > I've had a little problem for several weeks now. It is > annoying and > therefore I will ask for help: > When I writ

Re: [R] numerical or not?

2010-04-26 Thread jim holtman
It would be quicker, and easier, to use save/load to keep your temporary output. Therefore you would not have to be concerned with a structure that would be compatible to write.table/read.table. 2010/4/26 Laetitia Schmid > Hi, > I've had a little problem for several weeks now. It is annoying an

Re: [R] numerical or not?

2010-04-26 Thread Sarah Goslee
I tried reading in your text file with the read.table statement you provided. Everything worked fine for me - str() shows that all values are integers, and functions such as summary() work as anticipated. You don't tell us *what* you are trying to do. One possible source of error is that read.tabl

Re: [R] numerical or not?

2010-04-25 Thread jim holtman
If you are saving it to read back into R, then consider using 'save' and 'load'. It will avoid any problems that you might have when converting back and forth from the internal format to ascii data in a flat file. Also since you posted no data, there is no way we can help you solve the problem.

Re: [R] numerical or not?

2010-04-25 Thread Ted Harding
On 25-Apr-10 21:20:44, Laetitia Schmid wrote: > Hi, > I've had a little problem for several weeks now. It is annoying and > therefore I will ask for help: > When I write a script with several iterations, I make it write out a > text file to save the data during the run. For example I write: > i

[R] numerical or not?

2010-04-25 Thread Laetitia Schmid
Hi, I've had a little problem for several weeks now. It is annoying and therefore I will ask for help: When I write a script with several iterations, I make it write out a text file to save the data during the run. For example I write: if (i %% 25) write.table(output,"temporary_output.txt") L

[R] numerical or not?

2010-04-25 Thread Laetitia Schmid
Hi, I've had a little problem for several weeks now. It is annoying and therefore I will ask for help now: When I write a script with several iterations, I make it write out a text file to save the data during the run. For example I write: if (i %% 25) write.table(output,"temporary_output.txt