Re: [R] understanding recursive functions

2008-12-20 Thread joseph . g . boyer
Jeffrey and Jeff, Thank you for clearing this up. The problem was that I didn't read page 47 of the guide carefully. The introduction of the <<- operator on page 44 leaves me with the impression that <<- will create an assignment in the local environment THAT ALSO holds true for the next higher

Re: [R] understanding recursive functions

2008-12-18 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Nordlund, > Dan (DSHS/RDA) > Sent: Thursday, December 18, 2008 5:00 PM > To: r-help@r-project.org > Subject: Re: [R] understanding recursive functions

Re: [R] understanding recursive functions

2008-12-18 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of > ted.hard...@manchester.ac.uk > Sent: Thursday, December 18, 2008 2:52 PM > To: r-help@r-project.org > Cc: joseph.g.bo...@gsk.com > Subject: Re: [R]

Re: [R] understanding recursive functions

2008-12-18 Thread Wacek Kusnierczyk
Peter Dalgaard wrote: > Wacek Kusnierczyk wrote: >> >>> >>> " The operators '<<-' and '->>' cause a search to made through the >>> environment for an existing definition of the variable being >>> assigned. If such a variable is found (and its binding is not >>> locked) then its val

Re: [R] understanding recursive functions

2008-12-18 Thread Peter Dalgaard
Wacek Kusnierczyk wrote: Wacek Kusnierczyk wrote: it's a pity that <<- is not explained in ?`<<-` clearly enough: " The operators '<<-' and '->>' cause a search to made through the environment for an existing definition of the variable being assigned. If such a variable is found (an

Re: [R] understanding recursive functions

2008-12-18 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote: > > it's a pity that <<- is not explained in ?`<<-` clearly enough: > > " The operators '<<-' and '->>' cause a search to made through the > environment for an existing definition of the variable being > assigned. If such a variable is found (and its binding is

Re: [R] understanding recursive functions

2008-12-18 Thread Wacek Kusnierczyk
Jeffrey Horner wrote: > joseph.g.bo...@gsk.com wrote on 12/18/2008 04:22 PM: >> I'm trying to understand the use of recursive functions described on >> page 45 of An Introduction to R by the R core development team. >> >> A function is a list of expressions, which all get executed with only >> the

Re: [R] understanding recursive functions

2008-12-18 Thread Ted Harding
On 18-Dec-08 22:33:28, Jeffrey Horner wrote: > joseph.g.bo...@gsk.com wrote on 12/18/2008 04:22 PM: >> I'm trying to understand the use of recursive functions described >> on page 45 of An Introduction to R by the R core development team. >> >> A function is a list of expressions, which all get ex

Re: [R] understanding recursive functions

2008-12-18 Thread Jeffrey Horner
joseph.g.bo...@gsk.com wrote on 12/18/2008 04:22 PM: I'm trying to understand the use of recursive functions described on page 45 of An Introduction to R by the R core development team. A function is a list of expressions, which all get executed with only the last being assigned to a global va