Hello R-users,
In a loop, if a function, such as nls, gives an error, is it possible to
coerce R to continue proceeding the next command with the same
loop?
Thanks so much for your advice!
Hanna Lu
[[alternative HTML version deleted]]
__
Yimeng Lu wrote:
Hello R-users,
In a loop, if a function, such as nls, gives an error, is it possible to
coerce R to continue proceeding the next command with the same
loop?
Yes, see the try() function. The basic usage is something like
value - try( some calculation )
if
?try
spencer graves
Yimeng Lu wrote:
Hello R-users,
In a loop, if a function, such as nls, gives an error, is it possible to
coerce R to continue proceeding the next command with the same
loop?
Thanks so much for your advice!
Hanna Lu
[[alternative HTML