Description Usage Arguments Value Author(s) Examples
Takes a dataframe with XY coordinates as input and converts the coordinates to another projection system. The function defaults to converting longlat to UTM zone 11, however any properly formated CRS string is acceptable for input.
1 2 |
df |
A dataframe that contains x, y coordinates. |
xy |
A vector of the names for the input x and y coordinates. Default is long_x and lat_y |
CRSin |
The CRS string of the input coordinates, defaults to longlat |
CRSout |
The CRS string of the output coordinates, defaults to UTM Zone 11 |
outclass |
The class of the data object to be returned. Options include |
the original data.table
, data.frame
or SpatialPointsDataFrame
with converted XY coordinates added to the object.
Mitchell Gritts
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.