I want to group the following:
Sample Data:
ProductId           Category    Price
-------------------------------------
628D5D44D6C7B525    accessories 0
6B079EE7E6794C05    accessories 0
2D5F744CBC63BF37    accessories 0
1A410674D1FD44D5    accessories 0
25807921234D4A73    jewellery   18923
27458D0C361B0B7     jewellery   18995
7F1152404511B7F5    jewellery   19021
acse<-
  select(prcbrkt, ProductId:Price) %>%
  group_by(Category) %>%
  mutate(price_Level <- 
              cut(Price, breaks = quantile(Price, c(0, .25, .50, .75)),
              labels = c('Low', 'Medium', 'High'),
              include.lowest = TRUE))
This leads to the following Error-Message:
Error in mutate_impl(.data, dots) : Evaluation error: 'probs' outside [0,1].
I am trying to write an algo where it has to display as which price bracket(High, Med or Low) will that productID falls in
for example: When I enter a productID it should display as below:
78BF0560126D416F    jewellery   18472 HIGH
 
    