BaşlayınÜcretsiz Başlayın

Looking at specific items

Sometimes, you may want to look at specific items rather than looking at overall baskets. From the Online_Retail_clean dataset, you will select baskets containing herb markers. You will be looking at two specific items which have the following description: "HERB MARKER ROSEMARY" and "HERB MARKER THYME". Your task will be to find out the number of baskets containing these items (both individually and in combination).

Bu egzersiz

Market Basket Analysis in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Number of total and distinct items for HERB MARKER THYME
Online_Retail_clean %>%
  filter(___ == "___")  %>%
  summarize(n_tot_items = ___,
            n_basket_item = n_distinct(___))
Kodu Düzenle ve Çalıştır