View source: R/format_values.R
add_wi | R Documentation |
For a given office, looks at office_vote (the candidate in characters) and the office_party (the party, -1, 1, or otherwise 0), and edits the 0 to 0.5 if office_party is 0 but candiddate name is not NA (a third party or write-in)
add_wi(tbl, var)
tbl |
wide table |
var |
the unquoted office variable |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.