Displaying 1 result from an estimated 1 matches for "endeless".
Did you mean:
endedness
2002 Jul 09
3
Error handling
...o perform several simulation and
sometimes this parameters create function errors wich cause the algoritm
to stop.
How can I avoid this ?
Below there's a small example that I made to study the problem but I was
not able to solve it. I've tried "restart" function but it caused an
endeless loop.
All help is wellcome.
> # function
>
> fun.test<-function(vec){
+ for(i in 1:length(vec)){
+ a <- log(vec[i])
+ cat(vec[i],a,"\n")
+ }
+ }
>
> # case 1
>
> vec<-c(2,4,6)
>
> fun.test(vec)
2 0.6931472
4 1.386294
6 1.791759
>
> # ca...