Description Usage Arguments Examples
This function is to replace code(s) in either SA or MA question
1 | replace_code(vector, to_be_replaced, replacement)
|
vector |
character vector (MA question) or single numeric value (SA question) |
to_be_replaced |
character string (only 1 code to be replaced) or character vector (more than 1 code to be replaced) |
replacement |
character string (only 1 code as replacement) or character vector (more than 1 code as replacement) |
1 2 | replace_code(c("1", "2,4", "3,5"), 1, 2)#"2" "2,4" "3,5"
replace_code(c(1, 2, 3), 1, 99)#99 2 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.