Displaying 1 result from an estimated 1 matches for "somentimes".
Did you mean:
soemtimes
2004 Mar 18
2
don't stop when error occurs
...: 18 March 2004 14:36
To: R-help@stat.math.ethz.ch
Subject: [R] don't stop when error occurs
hi,
i'm doing some bootstraping on a data set, using kmeans for each bootstrap,
i mean i do a loop(200 times) and in each loop i use kmeans.
i have to count some occurences in a matrix result,
but somentimes kmeans fail, cause of the algorithm.
so i would like to avoid my function to stop on kmeans error
is there a way to do such a thing?
like
if(kmeans()=error)continue
or
if(kmeans != -1) go on
thanks
sebeuuuuuuuuuu^^
______________________________________________
R-help@stat.math.ethz.ch mailing l...