read_shape: Read in the shape file as sf object

View source: R/read_shape.R

read_shapeR Documentation

Read in the shape file as sf object

Description

read_shape

Usage

read_shape(shp_path, simplify = TRUE, keep = 0.1)

Arguments

shp_path

character vector location of shape file, extension .shp

simplify

a boolean to decide whether to simplify the shape file using rmapshaper, keeping all shapes.

keep

ratio of points to keep

Value

an sf data frame, with a column of non null geometries

Examples


# Example of how a shape file is read
shape <- read_shape(shp_path = file.choose())



sugarbag documentation built on Nov. 10, 2022, 5:49 p.m.