Merge a list of rollcall objects.

merge_rollcalls(rollcalls, by = NULL)

Arguments

rollcalls

A list of rollcall objects.

by

The column in legis.data to use as an ID for matching legislators. If not provided legislators are matched based on name.

Examples

data(nhsenate)
combined_rcs <- merge_rollcalls(nhsenate, by='name')
print(combined_rcs)
#> Source:		 http://gencourt.state.nh.us/nhgcrollcalls/ 
#> Number of Legislators:	 103 
#> Number of Votes:	 2841 
#> 
#> Using the following codes to represent roll call votes:
#> Yea:		 1 
#> Nay:		 0 
#> Abstentions:	 NA 
#> Not In Legislature:	 9 
#> 
#> Legislator-specific variables:
#> [1] "name"     "party"    "district"
#> Vote-specific variables:
#> [1] "Date of Vote"    "Vote #"          "Bill No."        "Bill Title"     
#> [5] "Question/Motion" "Total Yeas"      "Total Nays"     
#> Detailed information is available via the summary function.