code | R Documentation |
Create a code
code(code, ..., color = NULL, makes_irrelevant = NULL, required_for = NULL)
code |
The name of the code |
... |
Optionally, nested codes for children |
color |
Optionally, the color of the code |
makes_irrelevant |
Optionally, a character vector of question names that become irrelevant if this code is the selected answer. Can also be "REMAINING" to make all questions after the current one irrelevant. |
required_for |
Optionally, a character vector of question names. If this code is not selected, all these questions become irrelevant. Can also be "REMAINING" for all questions after the current. |
A annotatorCode object, to be used inside the codes
function
code("yes", color = "green")
code("no", color = "red")
# nested codes
code(
"actor",
code(
"government",
code("president"),
code("vice-president")
),
code("media"),
code("society")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.