Description Usage Arguments Author(s) Examples
The listed functions provide a familiar interface to the hidden fields of
a Survey
object. Each returns a named vector with the corresponding values.
1 2 3 4 5 6 7 8 9 10 11 | get_label(.srv, which = NULL)
get_association(.srv, which = NULL, invert = TRUE)
get_marketshare(.srv, which = NULL)
get_config(.srv, which = NULL)
get_translation(.srv, which = NULL)
get_data(.srv)
|
.srv |
A |
which |
If this is specified, the function only returns the elements which match the criteria. This should be a character vector. |
invert |
For |
Kristian D. Olsen
1 2 3 4 5 6 7 8 9 10 11 12 | # Create a new survey (regular)
x <- survey_df(data.frame("A" = 1, "B" = 2))
x <- set_label(x, A = "This is a label")
get_label(x, "A")
# Same example using R6
y <- survey_df(data.frame("A" = 1, "B" = 2))
y$set_label(A = "This is a label")
y$get_label("A")
# Should be equivalent
all.equal(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.