powered by
Used to convert labels to factor to be used by switchBox package.
group_TSP(label, my_group)
a vector indicating multi classes
character indicate the wanted class
a factor contains two levels one is the wanted class and the other is "rest" that represent any other class other than the wanted class
# NOT RUN { L <- sample(x = c("A","B","C","D"), size = 1000, replace = TRUE) # }
Run the code above in your browser using DataLab