Categorize a vector based on a data.frame with two columns, the low and high end points of each category.
categorize(vec, cutpoints.df, match.min = TRUE,
names = TRUE)
vector to categorize
quantile_cutpoints will create a data.frame of the proper format here
Whether to include or exclude the minimum value
Return names or row numbers
Categorized values