@ksaulakh wrote:
Hi Tavish, I wanted to ask that we aren't declaring any variable name target_customers and it is being used without declaration here:
possible_slots <- 20
avail <- 21
merch_rec <- matrix(0, nrow = length(target_customers), ncol = avail)
merch_rec[,1] <- unique(input3$Cust_map)
correlation_mat <- as.matrix(correlation_mat)
position <- 1
for (i in 1:length(target_customers)) {
been_thr <- input[position : (position + customer_merch_ct[i] - 1),'individual_merchant']
merging <- as.data.frame(merchant_ident[merchant_ident[,'individual_merchant'] %in% been_thr,])
Please help for this snippet.
Posts: 1
Participants: 1