Description Usage Arguments Details Value
Write data to disk as .csv and .Rds, using the naming convention
2016-{state_postal}-precinct. Transformations are applied before saving;
see details.
1  | write_precincts(.data, state_postal)
 | 
.data | 
 A table of returns.  | 
state_postal | 
 State postal abbreviation.  | 
Before saving:
 Rename or drop legacy variables, which appear in some old intermediate
CSVs, e.g., total votes or candidate.votes
 Keep only the columns defined in the [fields] schema
 Assign default values for these columns (e.g., FALSE for special)
Normalize whitespace in character columns (trim exterior whitespace; replace 1+ interior whitespace with single whitespace)
Reorder the columns
 Convert variables to expected types (e.g., numeric -> integer), which
should be non-destructive if the validate(.data) was successful.
Processed .data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.