Skip to main content
100%

Shiny / R : csv to shapefile

✓ Published0🌍 Public
RRCura
Last edited May 20, 2014
Created on May 20, 2014

This Shiny/R application demonstrates a straightforward conversion of CSV point data into an interactive map and downloadable ESRI shapefile. Users upload a CSV file, which is read via `read.table` and converted into a spatial points data frame using `SpatialPointsDataFrame` from the `sp` package, with optional CRS assignment commented out. The coordinates are plotted using base R’s `plot` function, while the `writeOGR` function from `rgdal` exports the data as a shapefile, which is then zipped and served through a `downloadButton` wrapped in a `downloadHandler`.

AI-generated description

Similar vizzes