USING RSTUDIO I've already completed questions 1-4. I just need help with the rest.
Posted: Thu Jul 14, 2022 2:17 pm
USING RSTUDIO
I've already completed questions 1-4. I just need helpwith the rest.
1. 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. 2. Find the average of purchase amount using for loop. 3. Find the average of purchase amount using while loop. 4. Find the average of purchase amount using repeat loop. 5. Find the average of purchase amount for female shoppers using for loop. 6. Find the average of purchase amount for female shoppers using while loop. 7. Find the average of purchase amount for female shoppers using repeat loop. 8. Find the differences between the average of purchase amount for female and male shoppers.
I've already completed questions 1-4. I just need helpwith the rest.
1. 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. 2. Find the average of purchase amount using for loop. 3. Find the average of purchase amount using while loop. 4. Find the average of purchase amount using repeat loop. 5. Find the average of purchase amount for female shoppers using for loop. 6. Find the average of purchase amount for female shoppers using while loop. 7. Find the average of purchase amount for female shoppers using repeat loop. 8. Find the differences between the average of purchase amount for female and male shoppers.