Hello,
On Tue, Jun 12, 2012 at 11:13 AM, R. Michael Weylandt
wrote:
> Long answer: use a closure if for some bizarre reason you just can't
> use a loop.
Do you mean use recursion?
Take care
Oliver
--
Oliver Ruebenacker
Bioinformatics Consultant (http://www.knowomics.com/wiki/
Hello,
On Tue, Jun 12, 2012 at 10:25 AM, Rantony wrote:
> Hi,
>
> here i have some code...
>
>
> a <-1
> b <- b+1
> c <- b+a/20
> if c >5
> { d<- 1 }
> else { d<- 0 }
>
> i want to repeat this code from the 2nd line [b <- b+1] without using loop.
> Actulay i want to use "*Label *" and cal
Is this homework? If it is, please read the posting guide.
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
+ 32 2 525 02 51
+ 32 54
Short answer: no.
Long answer: use a closure if for some bizarre reason you just can't
use a loop.
Bonus tip: change the last three lines to:
d <- c > 5
for speed and clarity!
Michael
On Tue, Jun 12, 2012 at 9:25 AM, Rantony wrote:
> Hi,
>
> here i have some code...
>
>
> a <-1
> b <- b+1
>
4 matches
Mail list logo