Calculate rice score
rice(x, ...) # S3 method for voteList rice(x, minvotes = 10, ...)
x | A voteList object |
---|---|
... | Other parameters passed on. |
minvotes | The minimum number of votes for a party to have participated in. Defaults to 10. |
A list of rice scores.
voteList
: Rice index for voteList object
rice(examplevotes)#> Warning: `filter_()` was deprecated in dplyr 0.7.0. #> Please use `filter()` instead. #> See vignette('programming') for more help#> Warning: `summarise_()` was deprecated in dplyr 0.7.0. #> Please use `summarise()` instead.#> Warning: `group_by_()` was deprecated in dplyr 0.7.0. #> Please use `group_by()` instead. #> See vignette('programming') for more help#> party rice_mean #> 1 CDA 1 #> 2 CU 1 #> 3 D66 1 #> 4 GL 1 #> 5 PvdA 1 #> 6 PvdD 1 #> 7 PVV 1 #> 8 SGP 1 #> 9 SP 1 #> 10 Verdonk 1 #> 11 VVD 1