Learn R Programming

spsurvey (version 4.1.4)

read.shape: Read an ESRI Shapefile

Description

This function reads an ESRI shapefile and creates a simple features (sf) object.

Usage

read.shape(filename)

Arguments

filename

Character string containing the name of the shapefile. The shapefile name should include the ".shp" extension. If the name does not include that extension, it will be added.

Value

An object belonging to class sf.