Learn R Programming

RemixAutoML (version 0.11.0)

AutoRecomDataCreate: Convert transactional data.table to a binary ratings matrix

Description

Convert transactional data.table to a binary ratings matrix

Usage

AutoRecomDataCreate(data, EntityColName = "CustomerID",
  ProductColName = "StockCode", MetricColName = "TotalSales",
  ReturnMatrix = FALSE)

Arguments

data

This is your transactional data.table. Must include an Entity (typically customer), ProductCode (such as SKU), and a sales metric (such as total sales).

EntityColName

This is the column name in quotes that represents the column name for the Entity, such as customer

ProductColName

This is the column name in quotes that represents the column name for the product, such as SKU

MetricColName

This is the column name in quotes that represents the column name for the metric, such as total sales

ReturnMatrix

Set to FALSE to coerce the object (desired route) or TRUE to return a matrix

Value

A BinaryRatingsMatrix

See Also

Other Marketing Modeling: AutoMarketBasketModel, AutoRecommenderScoring, AutoRecommender

Examples

Run this code
# NOT RUN {
RatingsMatrix <- AutoRecomDataCreate(data,
                                     EntityColName = "CustomerID",
                                     ProductColName = "StockCode",
                                     MetricColName = "TotalSales",
                                     ReturnMatrix = TRUE)
# }

Run the code above in your browser using DataLab