Get by-election two-candidate preferred votes by polling place
Source:R/by_elections.R
get_by_election_tcp.RdGet by-election two-candidate preferred votes by polling place
Examples
# \donttest{
op <- options(readaec.cache_dir = tempdir())
get_by_election_tcp("Farrer")
#> Downloading from AEC: HouseTcpByCandidateByPollingPlaceDownload-31633.csv
#> # A tibble: 188 × 16
#> stateab divisionid divisionnm pollingplaceid pollingplace candidateid surname
#> <chr> <dbl> <chr> <dbl> <chr> <dbl> <chr>
#> 1 NSW 118 Farrer 746 Albury 40627 MILTHO…
#> 2 NSW 118 Farrer 746 Albury 42236 FARLEY
#> 3 NSW 118 Farrer 748 Albury Cent… 40627 MILTHO…
#> 4 NSW 118 Farrer 748 Albury Cent… 42236 FARLEY
#> 5 NSW 118 Farrer 747 Albury East 40627 MILTHO…
#> 6 NSW 118 Farrer 747 Albury East 42236 FARLEY
#> 7 NSW 118 Farrer 751 Albury North 40627 MILTHO…
#> 8 NSW 118 Farrer 751 Albury North 42236 FARLEY
#> 9 NSW 118 Farrer 34273 Albury PPVC 40627 MILTHO…
#> 10 NSW 118 Farrer 34273 Albury PPVC 42236 FARLEY
#> # ℹ 178 more rows
#> # ℹ 9 more variables: givennm <chr>, ballotposition <dbl>, elected <chr>,
#> # historicelected <chr>, partyab <chr>, partynm <chr>, ordinaryvotes <dbl>,
#> # swing <dbl>, date <date>
options(op)
# }