That is great Stephan,
thanks a lot for your help.
best,
salih
On Wed, Jun 1, 2011 at 9:18 PM, Stephan Kolassa wrote:
> Hi Salih,
>
> here you go:
>
>
> dummy <- FALSE
> for ( ii in 1:5 ) {
> for ( jj in 3:6 ) {
>cat("ii=",ii,"; jj=",jj,"\n",sep="
Hi Salih,
here you go:
dummy <- FALSE
for ( ii in 1:5 ) {
for ( jj in 3:6 ) {
cat("ii=",ii,"; jj=",jj,"\n",sep="")
if ( ii == jj ) {
dummy <- TRUE
break
}
}
if ( dummy ) break
}
###
Hi Stephan,
Thanks a lot. But i am not very good at R yet so i dont know how to set the
dummy variable to FALSE. Can you please help me with that as well?
On Wed, Jun 1, 2011 at 8:34 PM, Stephan Kolassa wrote:
> Hi,
>
> you could set a dummy variable to FALSE outside the outermost loop. If the
>
Hi,
you could set a dummy variable to FALSE outside the outermost loop. If
the break condition is met in the inner loop, set the dummy variable to
TRUE before breaking and test its truth status in the outer loop.
HTH
Stephan
Am 01.06.2011 21:25, schrieb Salih Tuna:
Hi,
I am looking for a c
4 matches
Mail list logo