# Create an object of the class 'mtkLevels'
l <- mtkLevels(type='categorical', levels=seq(1:3), weight=rep(0.33, 3))
# Set the levels'name to ('a', 'b', 'c')
setLevels(l, levels=c('a', 'b', 'c'))
Run the code above in your browser using DataLab