View source: R/take_transect.R
take_transect | R Documentation |
Take a transect of equally spaced sampling points through a population of plants with spatial coordinates, and pick the plant closest to each point.
take_transect(coords, n_sample_points, sample_spacing)
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. |
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.
Tom Ellis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.