choose_batch_simple: Function to take a spatially disaggregated sample weighted by...

Description Usage Arguments Value

View source: R/choose_batch_simple.R

Description

Function to take a spatially disaggregated sample weighted by values at points (e.g. uncertainty)

Usage

1
2
choose_batch_simple(point_data, batch_size, uncertainty_fieldname,
  candidate)

Arguments

point_data

an sf object containing points

batch_size

number of sampled points required

uncertainty_fieldname

column name of the field by which sampling should be weighted

candidate

Boolean vector of length equal to the number of points in 'point_data' representing whether a point should be considered a candidate for sampling or not

Value

index of the row numbers of 'point_data' included in the sample


disarm-platform/DiSARM documentation built on March 4, 2020, 3:49 p.m.