Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What proportion of baskets are over $ 1 0 in sales value? What proportion of baskets are over $ 2 0 in sales value? Hint:

What proportion of baskets are over $10 in sales value? What proportion of baskets are over $20 in sales
value?
Hint: You need to use group_by() and summarize(). Depending on your approach you may or may not
use mutate().
# test your ability to right this code from scratch rather than just
# filling in the blanks :)
_______
Exercise 4
Which stores had the largest total sales_value (hint: sum(sales_value, na.rm = TRUE)? Which stores
had the largest average loyalty discount as defined below?
Hint: You can calculate loyalty discount as a percentage of regular price using the following logic:
3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions