question archive This is the code for creating the custom group

This is the code for creating the custom group

Subject:StatisticsPrice: Bought3

This is the code for creating the custom group.

real_dataset2$cust_grp <- findInterval(real_dataset2$num_cust, c(101, 1001, 5001, 100000)) (Rstudio on a chromebook)

num_cust

Estimated number of customers

1-100

101-1000

1000-5000

5001+ [unknown as 0]

 

I am stuck at creating a code for

 

sales_type Primary type of sales

1: online_wholesale

2: direct_wholesale

3: online_retail

4: direct_retail

5: mixed

[unknown as 0]

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE