
Function reference
Datasets
scgElectionsNZ comes with the below datasets. For ease, they have been been divided into two categories, referring to the data level (National-level or Electorate-leve).
-
summary
- Summary (1996 - 2023)
-
split_total
- Split Total (2005 - 2023)
-
preMMP_results
- Pre-MMP Results (1890 - 1993)
-
turnout_historic
- Turnout (Historic) (1879 - 2023)
-
turnout
- Turnout (1996 - 2023)
-
vote_type
- Vote Type (1996 - 2023)
-
party_votes
- Party Votes (1996 - 2023)
-
candidate_votes
- Candidate votes for successful registered parties (1996 - 2023)
-
majority
- Majority (1999 - 2023)
-
split_electorate
- Split Electorate (2005 - 2023)
-
add_data()
- Add New Zealand Regions or Electorate Type to Electorates in a Data Frame
-
update_names()
- Update Electorate or Party Names in a Dataset