I am reading about k-means clustering method.
How does the method calculate the mean between two coordination points? How does the method work with more than two dimensions? How can calculate the distance and the mean if there are more than two dimension?
Are there any packages about k-means clustering in R?