Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

mobr (version 2.0.2)

centroid_accumulate: Internal function used by kNCN_average to compute the k-NCN algorithm starting with a specified focal sample

Description

Internal function used by kNCN_average to compute the k-NCN algorithm starting with a specified focal sample

Usage

centroid_accumulate(
  x,
  focal_sample = 1,
  n = NULL,
  coords = NULL,
  latlong = FALSE
)

Arguments

x

a mob_in object or a community site x species matrix

focal_sample

an integer from 1 to the number of samples of x that specifies which sample to start with. Defaults to 1

n

the number of samples to accumulate, defaults to NULL in which case all samples are accumulated

coords

the spatial coordinates of the samples of x

latlong

if latitude longitude arguments are supplied