Name: Athena Chowdhury Roll. No.
: PGP13047 Date: 22nd June, 2023
BA Assignment (ESPN)
Q1. Analyze the number of males and females location wise.
➢ rpivotTable(espn, rows="Gender", col="Location", aggregatorName = "Count")
Q2. Analyze the average income gender wise.
➢ rpivotTable(espn, rows="Gender", aggregatorName = "Average", vals = "Income")
Q3. Analyze the average income gender wise and location wise.
➢ rpivotTable(espn, rows="Gender", col="Location", aggregatorName = "Average",
vals="Income")
Q4. Analyze subscribers’ location in terms of percentage.
➢ rpivotTable(espn, rows="Location", aggregatorName = "Count as Fraction of Total")
Q5. Analyze the average age of subscribers gender wise and location wise.
➢ rpivotTable(espn, rows="Location", col="Gender", aggregatorName="Count as
Fraction of Total")
Q6. Create a two-dimensional pivot table of average income with gender and location.
➢ rpivotTable(espn, rows="Location", col="Gender", aggregatorName = "Average",
vals="Income", rendererName = "Table")
Q7. Analyze the gender of subscribers in terms of percentage.
➢ rpivotTable(espn, rows="Gender", aggregatorName="Count as Fraction of Total")