Below is the head of the shapefile from the folder:
Link to Sharepoint Folder
library(sf)
## Warning: package 'sf' was built under R version 4.2.3
library(DT)
## Warning: package 'DT' was built under R version 4.2.3
# Sets the working directory to the same folder as the R script is located in. # This has to be commented out prior to deploying to shinyapps.io setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
## Error in setwd(dirname(rstudioapi::getActiveDocumentContext()$path)): cannot change working directory
annualSpdCrash <- st_read("Anual_spd_crash_weather.shp")
## Reading layer `Anual_spd_crash_weather' from data source ## `D:\OneDrive - Texas State University\transportationProjects\7144\Anual_spd_crash_weather\Anual_spd_crash_weather.shp' ## using driver `ESRI Shapefile' ## Simple feature collection with 173913 features and 325 fields ## Geometry type: LINESTRING ## Dimension: XYM ## Bounding box: xmin: -794650.5 ymin: 2867539 xmax: 429991.2 ymax: 4057615 ## m_range: mmin: 0 mmax: 879.109 ## Projected CRS: NAD83 / UTM zone 15N
DT::datatable(head(annualSpdCrash))
Three columns indicate that hey are unique by naming convention. There are this many rows, and this many unique identifiers.:
nrow(annualSpdCrash)
## [1] 173913
length(unique(annualSpdCrash$unique_id))
## [1] 58587
length(unique(annualSpdCrash$uni_id_new))
## [1] 173913
length(unique(annualSpdCrash$unique_i_1))
## [1] 568