powered by
Set new value of a factor variable, checking for existing levels
setfactor(fv, v)
factor variable
value
a factor variable with a value val and the same levels
val