cs_group: Cumulative sum area grouping

cs_groupR Documentation

Cumulative sum area grouping

Description

This function takes a vector of area's and returns a grouping vector that aims to combine then towards an ideal aggregate size (threshold)

Usage

cs_group(a, athres)

Arguments

a

a vector of areas

athres

a threshold, or target, cumulative size

Value

a vector of length(a) containing grouping indexes


mikejohnson51/hyAggregate documentation built on July 1, 2022, 2:42 p.m.