R: Converting cartesian coordinates to polar coordinates, and then calculating distance from origin
问题 I've been looking for a solution to convert cartesian coordinates (lat, long) that I have to polar coordinates in order to facilitate a simulation that I want to run, but I haven't found any questions or answers here for doing this in R. There are a number of options, including the built in function cart2pol in Matlab, but all of my data are in R and I'd like to continue getting comfortable working in this framework. Question: I have lat/long coordinates from tagging data, and I want to