popsWithin: IFC_pops Checker for Object Membership to Populations

View source: R/popsWithin.R

popsWithinR Documentation

IFC_pops Checker for Object Membership to Populations

Description

Helper that will be used by popsCompute to determine which objects are within populations or not.

Usage

popsWithin(
  pops,
  regions,
  features,
  pnt_in_poly_algorithm = 1,
  pnt_in_poly_epsilon = 1e-12,
  display_progress = TRUE,
  title_progress = "",
  ...
)

Arguments

pops

list of populations.

regions

list of regions.

features

dataframe of features.

pnt_in_poly_algorithm

algorithm used to determine if object belongs to a polygon region or not. Default is 1.
Note that for the moment only 1(Trigonometry) is available.

pnt_in_poly_epsilon

epsilon to determine if object belongs to a polygon region or not. It only applies when algorithm is 1. Default is 1e-12.

display_progress

whether to display a progress bar. Default is TRUE.

title_progress

character string, giving the title of the progress bar. Default is "".

...

other arguments to be passed.

Source

For pnt_in_poly_algorithm, Trigonometry, is an adaptation of Jeremy VanDerWal's code https://github.com/jjvanderwal/SDMTools


IFC documentation built on Sept. 14, 2023, 1:08 a.m.