I have a vector like (1,100,2,30,20, ...)
And what I would like to do is to compare this value with another value. In fact, I can make a loop for these values, but I wonder if it is possible to make the map function vectorized. For example, I would like to match the value with its bucket, for example, the following
1 -> "< 10", 20 -> "10 to 50", 60 -> "50 to 100",
thanks
source share