View source: R/plans_helpers.R
avg_by_prec | R Documentation |
Takes a column of a redist_plans
object and averages it across a set of
draws
for each precinct.
avg_by_prec(plans, x, draws = NA)
plans |
a |
x |
an expression to average. Tidy-evaluated in |
draws |
which draws to average. |
a vector of length matching the number of precincts, containing the average.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.