results_upload: Uploads results to API

Description Usage Arguments

Description

Uploads results to API

Usage

1
results_upload(df, election_code, county_code, is_primary = FALSE)

Arguments

df

data.frame with schema columns:

  1. precinct – character. L2 precinct name. Use schema_precincts to see valid values

  2. office – character. One of "US Senate", "US House", "Governor", "Lieutenant Governor"

  3. district – integer. Congressional district.

  4. candidate – character. Last name only, unless a disambiguating first initial needed.

  5. party – 3 character party abbreviation: (Rep, Dem, Grn, Lib, Ind, Oth)

  6. votetype – character. One of "All" (for counties that do not differentiate) "Early", "Election", "Provisional

  7. votes – integer

election_code

string election code

county_code

string county code (5-digit FIPS)

is_primary

deactivates party – candidate checking for primaries


yougov-datascience/ygresults documentation built on May 13, 2019, 4:09 a.m.