allocating: Allocating strata: 'existing'

allocatingR Documentation

Allocating strata: 'existing'

Description

Allocation algorithms based on 'existing'

Allocation algorithms

Usage

allocate_existing_prop(existing, nSamp)

allocate_existing_optim(existing, metric, nSamp)

allocate_existing_manual(existing, nSamp, weights)

allocate_existing_equal(existing, nSamp)

allocate_prop(sraster, nSamp)

allocate_optim(sraster, mraster, nSamp)

allocate_manual(sraster, nSamp, weights)

allocate_equal(sraster, nSamp)

allocate_existing(toSample, existing)

allocate_force(toSample, nSamp, diff)

Arguments

existing

sf 'POINT' or data.frame. Existing plot network.

nSamp

Numeric. Number of desired samples.

weights

Numeric. Only applicable when allocation = "manual". Vector of weights where sum(weights) == 1. Vector length must be equal to the number of unique strata where the first numeric value corresponds to stratum 1, second stratum 2 etc.

sraster

spatRaster. Stratification raster to be used for sampling.

mraster

spatRaster. ALS metric raster. Required when allocation = optim.

Value

Data frame of allocated samples by stratum. Used internally within sample_existing(type = "strat").

Data frame of allocated samples by stratum. Used internally within sample_strat().


tgoodbody/sgsR documentation built on March 7, 2024, 2:20 a.m.