Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The dataset for a grocery stores transactions (Grocery.csv). The dataset contains over 14,000 transactions made by grocery store customers. The following variables are included in

The dataset for a grocery stores transactions (Grocery.csv). The dataset contains over 14,000 transactions made by grocery store customers. The following variables are included in the dataset:

Variable

Description

Transaction

Transaction ID

Purchase date

Date of purchase

Customer ID

Customer ID

Gender

Male or Female

Annual Income

Household annual income

Product Category

Product purchased

Units Sold

Number of items purchased

Revenue

Amount paid

Import the data set to RStudio and perform the following tasks. For each task, you should provide the R command script and a partial screenshot from the Console panel in RStudio showing the resultsee an example in #1 below.

  1. Find the dimension of this data set (example):
    1. R Script command line: dim(Grocery)
    2. Result:

  1. Display the first record of the each of the variables
    1. R Script:
    2. Result:
  2. Display the third record of the each of the variables
    1. R Script:
    2. Result:
  3. Display the forth record of the first 3 variables
    1. R Script:
    2. Result:
  4. Display the first 5 records of Unit Sold
    1. R Script:
    2. Result:
  5. Convert Revenue from string to number
    1. R Script:
    2. Result (show the first five records in the table):
  6. Display the summary statistics for each variable
    1. R Script:
    2. Result:
    3. Interpret the results. Did you see any potential problems or missing values in the data set?
  7. Create a histogram for Revenue. Please use the geom_histogram() function in the ggplot package. Do NOT use the hist() function.
    1. R Script:
    2. Result (from the Plots panel):
    3. Interpret the result:
  8. Create a box plot for Revenue
    1. R Script:
    2. Result (from the Plots panel):
    3. Do a research online what is a box plot and interpret your result:

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

Banking And Finance Managing The Moral Dimension

Authors: James Lynch

1st Edition

1855731762, 978-1855731769

More Books

Students also viewed these Finance questions

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago