Let\'s have a numeric vector:
a <- round(runif(20, 1, 5), 0) [1] 3 5 4 2 1 2 3 4 5 2
I need to assign values to these numbers using table li
a <- c(3, 5, 4, 2, 1, 2, 3, 4, 5, 2) cut(a, breaks=c(0.5, 2.5, 4.5, 10), labels=c("A", "B", "C"))