View source: R/geo_utilities.R
spdf_points | R Documentation |
Generate Point Spatial DataFrame
spdf_points(.data, lat = "latitude", long = "longitude", crs = 4326)
.data |
Location data as a data frame, use |
lat |
Column name for latitude, default value is latitude |
long |
Column name for longitude, default value is longitude |
crs |
Coordinate Reference System, default value is EPSG Code for WGS 1984 |
list of spatial data frames
## Not run:
cntry <- "Ethiopia"
level_fac <- grabr::get_ouorglevel(operatingunit = cntry, org_type = "facility")
df_facs <- extract_locations(country = cntry, level = level_fac)
df_facs <- df_facs %>% extract_facilities()
df_locs <- df_facs %>% select(-c(geom_type:nested))
spdf <- spdf_points(.data = df_locs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.