Skip to contents

Calculate rice score

Usage

rice(x, ...)

# S3 method for class 'voteList'
rice(x, minvotes = 10, ...)

Arguments

x

A voteList object

...

Other parameters passed on.

minvotes

The minimum number of votes for a party to have participated in. Defaults to 10.

Value

A list of rice scores.

Methods (by class)

  • rice(voteList): Rice index for voteList object

Examples

rice(examplevotes)
#>           party rice_mean
#> 1       Verdonk         1
#> 2           D66         1
#> 3           CDA         1
#> 4           PVV         1
#> 5           VVD         1
#> 6           SGP         1
#> 7          PvdA         1
#> 8            GL         1
#> 9            SP         1
#> 10         PvdD         1
#> 11 ChristenUnie         1