powered by
read_shape
read_shape(shp_path, simplify = TRUE, keep = 0.1)
character vector location of shape file, extension .shp
a boolean to decide whether to simplify the shape file using rmapshaper, keeping all shapes.
ratio of points to keep
an sf data frame, with a column of non null geometries
# NOT RUN { # Find the location of shape data shape <- read_shape(shp_path = file.choose()) # } # NOT RUN { # }
Run the code above in your browser using DataLab