% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unsupervised-market-basket.R
\name{recommend_products}
\alias{recommend_products}
\title{Generate Product Recommendations}
\usage{
recommend_products(rules_obj, basket, top_n = 5, min_confidence = 0.5)
}
\arguments{
\item{rules_obj}{A tidy_apriori object}

\item{basket}{Character vector of items in current basket}

\item{top_n}{Number of recommendations to return (default: 5)}

\item{min_confidence}{Minimum confidence threshold (default: 0.5)}
}
\value{
A tibble with columns \code{rhs} (recommended item),
\code{confidence}, \code{lift}, and \code{support}, sorted by lift in
descending order.
}
\description{
Get product recommendations based on basket contents
}
\examples{
\donttest{
if (requireNamespace("arules", quietly = TRUE)) {
  data("Groceries", package = "arules")
  res <- tidy_apriori(Groceries, support = 0.001, confidence = 0.5)
  recommend_products(res, basket = c("whole milk", "butter"))
}
}

}
