View source: R/dthelper-collapse-recode-variables.R
relabel | R Documentation |
Relabel Single Variable
relabel(x, from, to = 1:length(from))
x |
vector object |
from |
Original scale (order of input needs to match desired scale) |
to |
Desired scale (order of input needs to match original scale). Defaults to integer scale starting from 1 |
vector object
x <- c("Strongly Disagree","Disagree", "Neutral"," Agree", "Strongly Agree") relabel(x, from = c("Strongly Disagree","Disagree", "Neutral"," Agree", "Strongly Agree"), to = c("SD","D","N","A","SA"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.