Skip to contents

Loads a dataset from the UGRC SGID database. By default, the dataset is returned as an sf object for spatial data analysis.

Usage

load_ugrc_data(table_name, as_sf = TRUE)

Arguments

table_name

A character string specifying the name of the table to retrieve (e.g., "schema.table_name").

as_sf

Logical. If TRUE (default), the data is returned as an sf object. If FALSE, the geometry column is dropped and a regular data frame is returned.

Value

An sf object or a data frame containing the data from the specified table.

Examples

if (FALSE) { # \dontrun{
# Load UTA Transit Lines
uta_lines <- load_ugrc_data("transportation.uta_routes_and_ridership")

# Load UTA Transit Stops
uta_stops <- load_ugrc_data("transportation.uta_stops_and_ridership")
} # }