assign_coding | R Documentation |
Stores a coding at the "rcoder.coding" attribute of a vector
assign_coding(vec, .coding, .bpr = TRUE)
vec |
A vector |
.coding |
A 'coding' object |
.bpr |
Also overwrite the "bpr.coding" attribute with the character representation of '.coding'. Used for interop with blueprintr variable decorations. |
The vector with its "rcoder.coding" attribute set to '.coding'
[recode_vec()]
cdng <- coding(code("Yes", 3), code("Maybe", 2), code("No", 1))
vec <- sample(1:3, 50, replace = TRUE)
assign_coding(vec, cdng)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.