project_df | R Documentation |
This function projects a data.frame to another coordinate system, which can be specified.
project_df(
df,
lon = "longitude",
lat = "latitude",
old_crs = "EPSG:4326",
new_crs = "ESRI:54009"
)
df |
data.frame with columns for coordinates, e.g., longitude and latitude |
lon |
column name of the column containing information on longitude |
lat |
column name of the column containing information on latitude |
old_crs |
coordinate system of the input owin-object. Defaults to longitude/latitude "EPSG:4326" |
new_crs |
coordinate system of the output owin-object. Defaults to the Mollweide Projection "ESRI:54009" |
data.frame with projected coordinate-system
new_df <- project_df(mro2D$destination$recovery_data$b1,
old_crs = "ESRI:54009", new_crs = "EPSG:4326")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.