subsampling_trait_extraction.Rd
Extract measurements from sampled_data.frame and polygons
subsampling_trait_extraction(
x,
polygons,
sample_index,
trait.subset = NULL,
stom.val = 85,
subs.val = 170,
pave.val = 255
)
List of the form output by extract_epidermal_traits()
(see documentation of that function for details)
sf object containing the cell polygons that were used to generate sample_index
Numeric vector of cells to be measured.
Character. Specific traits to measure. Defaults to NULL (all traits measured).
Numeric. Value of stomata. Defaults to 85.
Numeric. Value of subsidiary cells. Defaults to 170.
Numeric. Value of pavement cells. Defaults to 255.
A vector with whole-image values.
This function is designed to be used when the image has already
been processed and all cells have already been measured (e.g.
when evaluating sampling effort). For unmeasured images, see
extract_epidermal_traits()
.