Calculate cosponsorship between MPs

cosponsors(voteList, partylevel = FALSE)

Arguments

voteList

A voteList object, most of the time the votes objects that comes with the dutchparl package.

partylevel

Boolean, default = FALSE. Analyze cosponsorship at the party level.

Value

A list with cosponsorship data in which each row represents a pair of MPs.

Details

Note that this operation can be expensive for very large datasets. It is recommended to limit the data to one parliamentary term.

Examples

cosponsors(examplevotes)
#> # A tibble: 1,600 x 9 #> MP1.id MP1.name MP1.party MP2.id MP2.name MP2.party nCosponsor totalSponsor #> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> #> 1 2218 Ineke van Gent GL 2218 Ineke v~ GL 2 2 #> 2 2218 Ineke van Gent GL 2455 Margot ~ PvdA 1 2 #> 3 2218 Ineke van Gent GL 3124 Mariann~ SP 0 2 #> 4 2218 Ineke van Gent GL 3058 Madelei~ CDA 0 2 #> 5 2218 Ineke van Gent GL 3114 Ed Anker CU 0 2 #> 6 2218 Ineke van Gent GL 2682 Bas van~ SGP 0 2 #> 7 2218 Ineke van Gent GL 2416 Ineke D~ VVD 0 2 #> 8 2218 Ineke van Gent GL 3183 Richard~ PVV 0 2 #> 9 2218 Ineke van Gent GL 2993 Alexand~ D66 0 2 #> 10 2218 Ineke van Gent GL 2220 Femke H~ GL 0 2 #> # ... with 1,590 more rows, and 1 more variable: percCosponsor <dbl>