Skip to contents

Vote stratum of each row

Usage

assign_hstratum(d, bins)

Arguments

d

rows with class, stratum, n_hap

bins

vote_bins() output

Value

character vector: h<i> (bin of the row's class x stratum), none (n_hap 0 or NA) or all (class x stratum without bins). Rows of a class without bins (named event regions) use the bins of their sd_class when d has that column (they borrow its thresholds, budget_thresholds()).