Folks:

I've replaced an outer for-loop with lapply and it works great.  But, I
can't seem to do the following type of exception handling:

tryCatch(dlmMLE(x)$value==Inf,error = function(e) NULL)

which basically says if the likelihood is Inf, throw an error.  But what I
want it to do is just go to the next index in the list.  When I was using a
for-loop I used:

if(tryCatch(dlmMLE(x)$value==Inf,error = function(e) 1)==1) {next} else
.... which worked fine.

Is there a way to do the same thing in lapply?

Thanks for your time. (I've checked Gmane for this type of problem and I
wasn't sure if this problem was answered or not...)

John

	[[alternative HTML version deleted]]

