Sorry for the confusion about my question. Here is the actual data I want to analyze:
Test Data: 45 40 42.11 N 111 02 32.79 W 5 45 40 31.30 N 111 02 32.55 W 5 45 40 38.29 N 111 02 52.81 W 5 45 40 45.90 N 111 03 25.57 W 5 45 42 52.26 N 110 58 26.36 W 10 45.43 20.60 N 110 58 05.19 W 15 45 49 33.01 N 111 09 36.87 W 20 45 52 25.72 N 111 22 10.17 W 20 45 23 43.73 N 111 19 49.78 W 20 45 21 11.56 N 111 32 45.95 W 15 These are latitudes, longitudes, and a point value. I want to be able to load all the data and determine a five mile radius that has the maximum possible points. I hope this is clearer. Thanks -- View this message in context: http://www.nabble.com/Point-Density-calculation-tp25530154p25530570.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.