powered by
Give Labels to Factor
to.labels(x) <- value
factor or numeric variable
labels separated by colon
factor variable with lables, the first lable will be treated as reference.
# NOT RUN { to.labels(x=mtcars$am) <- c('0:Female','1:Man') # }
Run the code above in your browser using DataLab