load.data.shp: Load shapefiles into 'sf's

View source: R/load.data.shp.r

load.data.shpR Documentation

Load shapefiles into sfs

Description

Convert shapefiles into a list of sf objects.

Usage

load.data.shp(sampling.file,
       ssh.file,
       reporting.file)

Arguments

sampling.file

Path to the sampling layer. The sampling layer should be a point sf object that contains an attribute to be interpolated.

ssh.file

Path to the SSH layer. The SSH layer should be a polygon sf object.

reporting.file

Path to the reporting layer. The reporting layer should be a polygon sf object.

Value

A list of sf objects.

Examples

sim.sampling.name <- system.file("extdata", "sim.sampling.shp",
                                 package="sandwichr")
sim.ssh.name <- system.file("extdata", "sim.ssh.shp",
                            package="sandwichr")
sim.reporting.name <- system.file("extdata", "sim.reporting.shp",
                                  package="sandwichr")

sim.data <- load.data.shp(sampling.file=sim.sampling.name,
                          ssh.file=sim.ssh.name,
                          reporting.file=sim.reporting.name)


sandwichr documentation built on April 27, 2023, 1:10 a.m.