Update app/logic/item_item_model.R
Browse files
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()
|