powered by
Apportion by the Dean Method
app_dean(size, pop)
integer vector
number of seats to apportion across units
a vector of population sizes for each unit
app_dean(size = 435, pop = state_2020$pop)
Run the code above in your browser using DataLab