Allocation algorithms based on `existing`
Allocation algorithms
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)
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()
.
sf 'POINT' or data.frame. Existing plot network.
Numeric. Number of desired samples.
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.
spatRaster. Stratification raster to be used for sampling.
spatRaster. ALS metric raster. Required when allocation = optim
.