1. Set working directory
2. Read the data StoreData.csv file into a data frame called store.df.
store.df.store.df.Year, p1prom, p2prom, country} into factor variables.store.df.describe() function from the psych package in R.## vars n mean sd median trimmed mad min se
## storeNum 1 2080 110.50 5.77 110.50 110.50 7.41 101.00 0.13
## Year 2 2080 1.50 0.50 1.50 1.50 0.74 1.00 0.01
## Week 3 2080 26.50 15.01 26.50 26.50 19.27 1.00 0.33
## p1sales 4 2080 133.05 28.37 129.00 131.08 26.69 73.00 0.62
## p2sales 5 2080 100.16 24.42 96.00 98.05 22.24 51.00 0.54
## p1price 6 2080 2.54 0.29 2.49 2.53 0.44 2.19 0.01
## p2price 7 2080 2.70 0.33 2.59 2.69 0.44 2.29 0.01
## p1prom 8 2080 0.10 0.30 0.00 0.00 0.00 0.00 0.01
## p2prom 9 2080 0.14 0.35 0.00 0.05 0.00 0.00 0.01
## country* 10 2080 4.55 1.72 4.50 4.62 2.22 1.00 0.04
store.df by country. Write R code to generate the following break-ups by country.## country
## AU BR CN DE GB JP US
## 104 208 208 520 312 416 312
2080 rows of weekly data for 20 unique store branches for two different years. For product 1 (Coke) and product 2 (Pepsi), write R code to count the number of weeks,When both products were under promotion?
When product 1 (Coke) was under promotion but product 2 (Pepsi) was not under promotion?
When product 1 (Coke) was not under promotion but product 2 (Pepsi) was under promotion?
When neither product was under promotion?