Question: Read the data set in BlackFriday.xlsx into R. Call the loaded data BlackFriday.xlxs. Make sure that you have the directory set to the correct location

Read the data set in BlackFriday.xlsx into R. Call the loaded data BlackFriday.xlxs. Make sure that you have the directory set to the correct location for the data.
Find the average of purchase amount using for loop.
Find the average of purchase amount using while loop.
Find the average of purchase amount using repeat loop.
Find the average of purchase amount for female shoppers using for loop.
Find the average of purchase amount for female shoppers using while loop.
Find the average of purchase amount for female shoppers using repeat loop.
Find the differences between the average of purchase amount for female and male shoppers.
large file, I just need the R scrpit
User_ID Product_ID Gender Age Occupation City_Category Stay_In_Current_City_Years Marital_Status Product_Category_1 Product_Category_2 Product_Category_3 Purchase

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!