Description Usage Arguments Details Value Examples
Convert a data.frame to a SpatialPointsDataFrame with desired CRS. The data.frame must contains the columns X and Y for the x and y coordinates.
1 | convert_proj(x, data.CRS = "+init=epsg:4326", new.CRS = "+init=epsg:3005")
|
x |
The data.frame to convert. |
data.CRS |
PROJ4 string defining current CRS of data. |
new.CRS |
PROJ4 string of desired CRS. |
The default is to convert WGS84 Longitude/Latitude to BC Albers.
A tbl with X and Y transformed to desired CRS.
1 | convert_proj(data.frame(Site = 1, X = c(-131.504), Y = c(52.871)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.