The title says it all, I have a large dataset that consists of factory and latitude and longitude, and among others. some of the factories I find have identical lat long although their name slightly different. How can I merge rows of factories that have the same lat-long in R?
mill | latitude | longitude | ID |
---|---|---|---|
a. | 12.34. | 7.86. | NA |
A. | 12.34. | 7.86. | 4 |
b | 47.56. | 27.07. | 5. |
The output I am looking for is:
mill | latitude | longitude | ID |
---|---|---|---|
a. | 12.34. | 7.86. | 4. |
b. | 47.56. | 27.07. | 5 |