[R] defining a function by branches

2004-10-14 Thread Pedro Rodrigues de Almeida
or intervals for the variable x, say, 25,50 and then from 50,... and I would appreciate a more elegant solution if possible. Thanks a lot, Pedro Rodrigues de Almeida Helsinki - Finland __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] problem with read.table

2004-07-19 Thread Pedro Rodrigues
This is a strange result. I couldn't have a similar result, even with your exact call to read.table. Maybe there is a problem with the file (possibly some white space characters not cleaned). If you send the first 5 lines of your text file I could say something more. On Mon, 2004-07-19 at 09:05,

Re: [R] problem with read.table

2004-07-19 Thread Pedro Rodrigues
The email has changed the file. Please send attached. On Mon, 2004-07-19 at 09:43, Vincent MUTEAUD wrote: Thanks for your quick answer but I don't see the escape character \n in myFile I see it on the result of my R command. This is an extract of myFile: # Capsis 4.1.3 generated file -

Re: [R] problem with read.table

2004-07-19 Thread Pedro Rodrigues
If your file looks like attached, you should call read.table(temp.txt, header=TRUE, sep=\t, skip=3, quote=) On Mon, 2004-07-19 at 09:43, Vincent MUTEAUD wrote: Thanks for your quick answer but I don't see the escape character \n in myFile I see it on the result of my R command. This is

Re: [R] problem with read.table

2004-07-19 Thread Pedro Rodrigues
exactly? A 10:08 19/07/2004 +0100, Pedro Rodrigues a écrit : If your file looks like attached, you should call read.table(temp.txt, header=TRUE, sep=\t, skip=3, quote=) On Mon, 2004-07-19 at 09:43, Vincent MUTEAUD wrote: Thanks for your quick answer but I don't see the escape

Re: [R] stl,package=stats

2004-07-18 Thread Pedro Rodrigues
On Sun, 2004-07-18 at 18:38, bob mccall wrote: Greetings: I'm using the time series decomposition routine stl from the package stats. But how do I get the results into a vector to work with them? example: data(AirPassengers) m-stl(AirPassengers,per) print(m) This lists the output

Re: [R] (kein Betreff)

2004-03-31 Thread Pedro Rodrigues
On Wed, 2004-03-31 at 19:01, Mag. Ferri Leberl wrote: Dear colleagues! How can I calculate the mean of every line of feld without using the command for? Thank You in advance feld-array(,c(100,10)) mittel-array(,c(100,1)) feld[,]-rnorm(1000) for(a in

Re: [R] How to save images?

2004-02-27 Thread Pedro Rodrigues
Maybe you could just PrintScreen or use the pdf() function which uses one or several pdf files instead of the default graphical device. After I use function plot() to get an image, how can I save the image or export it to .gif or other digital formats? Thanks a lot. --

Re: [R] nnet problem

2004-02-06 Thread Pedro Rodrigues
I believe you want to fit a nnet model to predict numeric data. you can try as follows: xx - Matrix of size INPUTS*EXAMPLESTRAIN yy - Vector of size EXAMPLESTRAIN x1 - Matrix of size INPUTS*EXAMPLESTEST # fit your model like this nnetmodel - nnet(x=xx, y=yy, ) # or like this only if

Re: [R] for loops?

2004-02-02 Thread Pedro Rodrigues
On Mon, 2004-02-02 at 13:42, Catherine Stein wrote: Hello R people! How can one use a for loop (or something similar) in R? As I type in each line, I get syntax errors... I'm just confused how much to type in at each prompt. Thanks for your help, cathy Hello. I believe you want