powered by
Give Labels to Factor
to.labels(x, labels)
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,labels=c('0:Female','1:Man')) # }
Run the code above in your browser using DataLab