Reading Vector Data

library(sf)
# view available drivers to see the many file types that sf can handle
st_drivers()

# Read shapefile format
ws <- st_read("data/source/watersheds/WBDHU12.shp")
head(ws)

# Create an object of the file path to the geodatabase
gdbPath <- "data/source/segi/2023_GS_Groves_OTI_public.gdb"

# View layers within the geodatabase
st_layers(gdbPath)
# Open one of the layers with st_read()
segiPt <- st_read(gdbPath, layer = "SEGI_OTI_2023_public")
head(segiPt)