poll | R Documentation |
Adds a poll to the current slide. It will return the corresponding 'iframe' tag which will show the poll results. This function must be called once per poll.
poll(
question,
options,
correct_opts = NULL,
multiple_opts = FALSE,
width = "100%",
height = "500px"
)
question |
A character -string- representing the poll question. |
options |
A character vector with the possible poll answers. |
correct_opts |
A character vector with the correct poll answers. Must be a subset of 'options'. |
multiple_opts |
A logical indicating if multiple options can be selected. |
width |
A character with a valid html 'width' value for the iframe. |
height |
A character with a valid html 'height' value for the iframe. |
An html 'iframe' tag which will show the poll results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.