Learn R Programming

crawl (version 2.2.1)

fix_segments: Identify segments of a path that cross a restricted area

Description

This function takes a crw_object (crwIS only for now) and an 'sf' polygon object that defines the restricted area and identifies each segment of the path that crosses the restricted area. Each segment begins and ends with a coordinate that is outside the restricted area.

Usage

fix_segments(crw_object, vector_mask, crwFit)

Value

a tibble with each record identifying the segments and pertinant values

Arguments

crw_object

Coordinate locations for the path. Can be one of the following classes: (1) 'crwIS' object from the crwPostIS function

vector_mask

an 'sf' polygon object that defines the restricted area

crwFit

crwFit object that was used to generate the crw_object