Skip to contents

Find dispersal jumps after having applied find_thresholds(). Prune points selected due to sector limits and secondary diffusion.

Usage

find_jumps_wrapper(
  dataset = grid_data,
  nb_sectors = 12,
  centroid = c(-75.67534, 40.41524),
  gap_size = 15,
  negatives = T
)

Arguments

dataset

A data frame of unique points to be processed, ideally the dataset_unique resulting from find_thresholds()

nb_sectors

Number of sectors in which the invasion range is divided

centroid

long,lat coordinates of the introduction point

gap_size

Distance between the invasion front and the positive point necessary for it to be considered a jump, in kilometers (default: 15)

negatives

Should negative surveys be considered? (default: TRUE)

Value

Four data frames: Jumps containing all jumps, Dist containing the limits of the diffusive spread, diffusion containing all diffusion points, and secDiff containing secondary diffusion cells

Examples

if (FALSE) { # \dontrun{
jumps <- find_jumps(dataset)
} # }