sp_transform | R Documentation |
Transform Spatial Coordinates
sp_transform(xy, from = NULL, to = 4326, cols = 1:2)
xy |
Rows of coordinates (x, y). |
from |
Initial projection as numeric (EPSG code), character (proj4 string), or |
to |
Target projection as numeric (EPSG code), character (proj4 string), or |
cols |
Column numbers or names specifying which xy columns are x and y coordinates. |
Transformed coordinates coerced to the same class as xy
.
spTransform
Other helper functions: capitalize_words
,
ch1903_to_wgs84
,
clean_strings
,
format_addresses
,
format_scientific_names
,
is.empty
, lvapply
,
melt_by_listcol
, na.remove
,
normalize_language
,
parse_scientific_names
,
quotemeta
,
replace_values_in_list
,
subset_search_results
,
unique_na
from <- 21781
to <- 4326
sp_transform(sp_transform(c(500, 1000), from, to), to, from)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.