take_transect: Take a transect through a Simmiad population

View source: R/take_transect.R

take_transectR Documentation

Take a transect through a Simmiad population

Description

Take a transect of equally spaced sampling points through a population of plants with spatial coordinates, and pick the plant closest to each point.

Usage

take_transect(coords, n_sample_points, sample_spacing)

Arguments

coords

Matrix with a row for each individual and a column each for x and y position.

n_sample_points

Number of points to sample along the transect.

sample_spacing

Distance between sampling points.

Value

A vector of integers giving the row positions of plants to be sampled. If no plants are within 1m of the sampling point, returns NA.

Author(s)

Tom Ellis


ellisztamas/simmiad documentation built on Dec. 12, 2023, 5:32 a.m.