Description Usage Arguments Value
This function converts simple feature (sf) POINT objects to tidy
tibbles that you can feed to valhallr functions. This is handy if you're
working with a lots of geospatial data and would like to run a set of
locations through, for example, valhallr::od_table()
.
1 | sf_to_latlon(data, output_crs = "WGS84")
|
data |
A simple feature collection with geometry class POINT. |
output_crs |
The desired output coordinate reference system (CRS). Defaults to WGS84. |
A non-sf tibble with new columns lat
and lon
containing latitudes
and longitudes respectively that can be fed into other valhallr
functions like valhallr::od_table()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.