Learn R Programming

crawl (version 2.2.0)

fix_path: Project path away from restricted areas

Description

Corrects a path so that it does not travel through a restricted area.

Usage

fix_path(crw_object, vector_mask, crwFit)

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

Value

a new crw_object (of type crwIS)