Re: [R] if condition and for cycles

2007-11-28 Thread ljantunes
Thanks. It did solve the problem. Luis -- View this message in context: http://www.nabble.com/if-condition-and-for-cycles-tf4882403.html#a13982960 Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://

Re: [R] if condition and for cycles

2007-11-27 Thread Frede Aakmann Tøgersen
; [mailto:[EMAIL PROTECTED] På vegne af ljantunes > Sendt: 27. november 2007 19:44 > Til: r-help@r-project.org > Emne: [R] if condition and for cycles > > > I have two questions about R: > > 1) Does anyone knows why I get the plots but not the summary > results of the

Re: [R] if condition and for cycles

2007-11-27 Thread Thomas Lumley
In both cases the problem is that you didn't print() the results. This is a similar issue to FAQ 7.16, which discusses the problem in more detail. -thomas On Tue, 27 Nov 2007, ljantunes wrote: I have two questions about R: 1) Does anyone knows why I get the plots but not the summ

Re: [R] if condition and for cycles

2007-11-27 Thread Rolf Turner
Output from an R command is printed to the console ***only*** if the command is issued *directly* from the command line. Otherwise the output is invisible. This includes unassigned output from commands issued ***inside functions***. And, finally, functions include things like ``if'' and for

[R] if condition and for cycles

2007-11-27 Thread ljantunes
I have two questions about R: 1) Does anyone knows why I get the plots but not the summary results of the linear fitting when I run this code? When I run it outside the if condition it works fine. if (op==4) { t=1:length(time(SeaIce)) fitlinear=lm(SeaIce~t) windows()