I coded up a rough function for taking SpatialPoints, subsetting those around Alaska and Hawaii, making the correct transformation, and returning a new SpatialPoints object which has shifted around the Alaska and Hawaii coordinates.
This is my first attempt in adding functionality to a package in R, so let me know if there's anything wrong with what I did. Hopefully this can be a bit of a learning experience for me.
I coded up a rough function for taking SpatialPoints, subsetting those around Alaska and Hawaii, making the correct transformation, and returning a new SpatialPoints object which has shifted around the Alaska and Hawaii coordinates.
This is my first attempt in adding functionality to a package in R, so let me know if there's anything wrong with what I did. Hopefully this can be a bit of a learning experience for me.