distribute_counts: distribute counts given a desired distribution (with smart...

View source: R/expandify.R

distribute_countsR Documentation

distribute counts given a desired distribution (with smart rounding)

Description

distribute counts given a desired distribution (with smart rounding)

Usage

distribute_counts(total, dist)

Arguments

total

total count to distribute

dist

target distribution (a vector that sums to 1)


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.