Learn R Programming

mlspatial (version 0.1.1)

load_shapefile: Load shapefile as sf + optionally convert to sp

Description

Load shapefile as sf + optionally convert to sp

Usage

load_shapefile(shp_path, to_sp = FALSE)

Value

list with sf and optionally sp object

Arguments

shp_path

Path to shapefile (.shp)

to_sp

logical: also return Spatial object?