Skip to content
Prev 179132 / 398506 Next

Optim function in the loop

Hi,

It is not clear to me what you are trying to do, but you should try `while' instead of `if':

count <- 1

while (count > 0) {
.
.   # yuor code here
.

}

Ravi.
____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: Rstarer <bozhao86 at hotmail.com>
Date: Sunday, May 3, 2009 5:01 am
Subject: [R]  Optim function in the loop
To: r-help at r-project.org