Description Usage Arguments Value Examples
writes the result of a prediction of a pollyvote object to a .csv file.
1 2 |
x |
[ |
file |
[ |
method |
[ |
prediction |
[ |
error_calculation |
[ |
write_args |
[ |
... |
additional arguments to the prediction or error calculation function. |
Nothing. A file is created.
1 2 3 4 5 6 | pv = create_pollyvote(perm_countries = "D")
data("polls_individual")
pv = add_data(pv, newdata = polls_individual, country = "D", region = "national",
source_type = "poll", election = "BTW")
write.pollyvote(pv, file = "pred.csv", method = "write.table",
prediction = "pollyvote")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.