convert_to_sppts | R Documentation |
Convert a data.frame with X, Y points to a spatial point data.frame
convert_to_sppts(df, input_proj, output_proj = WGS84(), long, lat)
df |
A data.frame that contains X and Y coordinates |
input_proj |
The projection of the input |
output_proj |
The projection of the output |
long |
The name of the variable that contains the longitude |
lat |
The name of the variable that contains the latitude |
SpatialPointsDataFrame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.