View source: R/GeospatialFunctions.R
TADA_MakeSpatial | R Documentation |
Transform a Water Quality Portal dataframe into a geospatial sf object.
TADA_MakeSpatial(.data, crs = 4326)
.data |
A dataframe created by |
crs |
The coordinate reference system (CRS) you would like the returned point features to be in. The default is CRS 4326 (WGS84). |
Adds one new column to input dataframe, 'geometry', which allows for mapping and additional geospatial capabilities. Check out the TADAModule2.Rmd for an example workflow.
The original TADA Water Quality Portal dataframe but as geospatial sf point objects.
TADA_DataRetrieval()
## Not run:
tada_not_spatial <- TADA_DataRetrieval(
characteristicName = "pH",
statecode = "SC",
countycode = "Abbeville",
applyautoclean = TRUE,
ask = FALSE
)
# make `tada_not_spatial` an sf object, projected in crs = 4269 (NAD83)
tada_spatial <- TADA_MakeSpatial(tada_not_spatial, crs = 4269)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.