This function converts a data.frame to a simple features (sf) object.
convert_df_to_sf(df, lon = "lon", lat = "lat", crs_from = 4326, crs_to = 3035)Returns an sf object with the specified coordinate reference system.
data.frame containing longitude and latitude columns
column name for longitude values (default: "lon").
column name for latitude values (default: "lat").
crs of the original coordinate system (default: 4326).
crs of the target coordinate system (default: 3035).
Martin Haringa