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://
; [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
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
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
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()
5 matches
Mail list logo