vojtam commited on
Commit
071c624
1 Parent(s): 0260a5d

Update app/logic/item_item_model.R

Browse files
Files changed (1) hide show
  1. app/logic/item_item_model.R +1 -1
app/logic/item_item_model.R CHANGED
@@ -16,7 +16,7 @@ get_item_item_recommendations <- function(item_item_df, data_tab, ids, how_many)
16
 
17
  result <- list()
18
  for (i in 1:length(distribution)) {
19
- result <- append(result, rows[i,which(colnames(item_item_df) == "X1"):distribution[i]] |> as.vector())
20
  }
21
 
22
  result <- result |> unlist()
 
16
 
17
  result <- list()
18
  for (i in 1:length(distribution)) {
19
+ result <- append(result, rows[i,which(colnames(item_item_df) == "X1"):(distribution[i]+2)] |> as.vector())
20
  }
21
 
22
  result <- result |> unlist()