powered by
Finds the geometric median for a given set of points using Weiszfeld's algorithm. Refer to the Wikipedia article for details.
weiszfeld(points, p0)
A data frame with columns for x and y coordinates
A vector with the (x, y) co-ordinates of the initial point
# NOT RUN { weiszfeld() # }
Run the code above in your browser using DataLab