Hello! I have a large dataset derived from a questionnaire in which we asked several thousand people to name up to 5 places that they go to and we subsequently assigned lat/long coordinates to these places. Some participants only named 1 or 2 places and some named more. What I'd like to do is calculate each participant's geographic "range". This basically means, for each participant, calculating the distances of every combination of places they named and then being able to identify the largest of those distances for every person. (For some the distance will be 0, if they only named 1 place.) I can imagine that there are several different ways to do this and I've made a few attempts and learned a few things over the last few hours, but I haven't really found the solution yet. Any tips or example code would be very much appreciated!
-Hilary
-Hilary
Comment