GE2014: General Election Results 2014

Description Usage Format Details Source See Also Examples

Description

New Zealand 2014 general election results by voting place

Usage

1

Format

A data frame with 136,195 rows and 7 variables.

Details

GE2014 is deprecated; please use nzge instead - it has results back to 2002 and is the one we will update in future.

Source

http://www.electionresults.govt.nz/electionresults_2014/e9/html/statistics.html

See Also

Locations2014

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# the following matches the results published at
# http://www.electionresults.govt.nz/electionresults_2014/e9/html/e9_part1.html
library(tidyr)
library(dplyr)
GE2014 %>%
    mutate(VotingType = paste0(VotingType, "Vote")) %>%
    group_by(Party, VotingType) %>%
    summarise(Votes = sum(Votes)) %>%
    spread(VotingType, Votes) %>%
    select(Party, PartyVote, CandidateVote) %>%
    ungroup() %>%
    arrange(desc(PartyVote))

nzelect documentation built on May 2, 2019, 3:44 p.m.