ComeçarComece de graça

Two baskets

Remember that you previously created a dataset containing a single basket from the dataset Online_Retail_2011_Q1. Now, it is time to look at two different baskets from that same dataset. The main interest of Market Basket Analysis is to figure out which items are common between both baskets. Starting with two baskets will allow to build on your intuition when working with hundreds or thousands of baskets.

The Invoice Number of the two baskets you are looking at are respectively 540160 and 540017.

Este exercício faz parte do curso

Market Basket Analysis in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Select two baskets
Two_baskets = Online_Retail_2011_Q1 %>%
  ___(___ %in% c(___, 540017))
Editar e executar o código