View source: R/unsupervised-market-basket.R
| recommend_products | R Documentation |
Get product recommendations based on basket contents
recommend_products(rules_obj, basket, top_n = 5, min_confidence = 0.5)
rules_obj |
A tidy_apriori object |
basket |
Character vector of items in current basket |
top_n |
Number of recommendations to return (default: 5) |
min_confidence |
Minimum confidence threshold (default: 0.5) |
A tibble with recommended items and metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.