Description Usage Arguments Value Examples
This function completely overwrites the data from a pollyvote container. Do not use unless you are sure that this is what you want.
1 | set_data(pv, newdata)
|
pv |
[ |
newdata |
[ |
pollyvote object containing the new data.
1 2 3 | pv = create_pollyvote()
# returns an empty data frame
set_data(pv, newdata = data.frame(country = "D", election = "BTW"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.