Learn R Programming

dci (version 1.0.2)

import_points: Prepare point data for connectivity analyses

Description

Reads and prepares geospatial point data for use with river_net().

Usage

import_points(pts, type)

Value

An object of class barriers or outlet depending on type, prepared for use with river_net().

Arguments

pts

A character string specifying the path to a shapefile of points, or an sf object containing point features.

type

A character string indicating the type of points. Must be one of: "bars" for barriers or "out" for the outlet.

Examples

Run this code
import_points(yamaska_barriers, type = "bars")
import_points(yamaska_outlet, type = "out")

Run the code above in your browser using DataLab