On 4/07/2007, at 12:01 PM, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

> Hi list,
>
> could anyone please educate me on the following:
>
> lst<-seq(47, 239, by=12)
>
> for(n in lst)
> {
>   lower=n; upper=lower+10
>    for(i in lower+2 : upper)
>    {
>      print(paste(n, " i: ", i, " lower: ",lower, " upper :", upper))
>    }
> }
>
> does not stop when i = upper


        To see what's going on, type

                239+2:249

        Hints:

                        o precedence of operators (this ain't APL)
                        o parentheses are Good Things.

                                cheers,

                                        Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confidenti...{{dropped}}

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to