extract_data: Helper function to extract population elements into a sample...

Description Usage Arguments Value

View source: R/utilities.R

Description

Helper function to extract population elements into a sample using a list of indices

Usage

1

Arguments

dt_pop

The population from which to extract sampled elements.

s

An integer matrix where rows represent sample locations and columns represent indices of the trees in dt_pop that are selected at the individual sample locations. Zeroes are used to indicate no neighbours and to ensure a rectangular data format.

Value

A data.table object containing the population elements from data that were selected into the sample. The data.table object has a new variable id_plot for grouping single sample locations.


AWF-GAUG/fisim documentation built on May 28, 2019, 11:02 a.m.