I have a dataset of latitude and longitude coordinates with 140000 values in each and when I apply k means clustering using r I am getting this error:
"Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)"
However, the dataset doesn't contain any missing values I don't think. How should I solve this issue and get clusters out of these locations? Is there any other algorithm which is suitable for this purpose? The intention behind the task is to get areas/regions with more accidents.