f <- as.factor(rep(letters[1:4],5))
levels(f)
F <- relabel(f,
a="A",
b="B",
c="C",
d="D"
)
levels(F)
f <- as.item(f)
labels(f)
F <- relabel(f,
a="A",
b="B",
c="C",
d="D"
)
labels(F)
Run the code above in your browser using DataLab