rcpp_closest_reef: rcpp_closest_reef

View source: R/RcppExports.R

rcpp_closest_reefR Documentation

rcpp_closest_reef

Description

Rcpp get closest reef.

Usage

rcpp_closest_reef(x, y, coords_reef)

Arguments

x, y

Numeric with xy coords of current individual.

coords_reef

Matrix with ID and coords of reef cells.

Details

Get ID and distance to closet reef cell. The first element of the returning vector is the ID, the second the distance in meter.

Value

vector


Allgeier-Lab/arrR documentation built on Feb. 13, 2025, 7:44 a.m.