R/categorise.R
categorise.Rd
This is a wrapper around the cut() function.
categorise(x, breaks)
A numeric vector to be passed through.
Break points for the categories. Both the top and bottom breaks must be provided.
Returns a character vector.
categorise(seq(10),breaks=c(0,3,10)) #> [1] "[0,3]" "[0,3]" "[0,3]" "(3,10]" "(3,10]" "(3,10]" "(3,10]" "(3,10]" #> [9] "(3,10]" "(3,10]"