intersection_traj_reg: Find the entrance point inside a defined region

View source: R/calc_distance.R

intersection_traj_regR Documentation

Find the entrance point inside a defined region

Description

If both arrival and departure are inside region, we return NA

Usage

intersection_traj_reg(
  .enquete,
  region_shape,
  arrival = "nom_site_enq",
  departure = "ville_res",
  output_prefix = "result"
)

Arguments

.enquete

enquete part of a geocoded eva_data object

region_shape

sf object. A Polygon of the region to study

arrival

names of the arrival point. the corresponding variable _lon _lat must exist in enquete We assume that all arrival points are in the region

departure

names of the departure point. the corresponding variable _lon _lat must exist in enquete

output_prefix

prefix used for the output columns

Value

a data.frame the same length as enquete with 3 variables id_quest result_lon result_lat


JMPivette/evavelo documentation built on April 8, 2023, 4:20 p.m.