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
Rantony
Verzonden: dinsdag 12 juni 2012 16:26
Aan: r-help@r-project.org
Onderwerp: [R] R-SCRIPT Label Calling Method
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 usin
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
>
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 call *GoTo* method like in other
coding Languages.
For eg:- like this,
5 matches
Mail list logo