0% found this document useful (0 votes)
106 views3 pages

ESPN Gender and Income Analysis Report

This document contains an assignment for a BA course involving analyzing subscriber data from ESPN using pivot tables in R. It includes 7 questions analyzing metrics like the number and percentage of males and females by location, average income by gender and location, and the percentage of subscribers by gender and location. For each question, it lists the R code needed to generate the relevant pivot table.

Uploaded by

Athena Chowdhury
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views3 pages

ESPN Gender and Income Analysis Report

This document contains an assignment for a BA course involving analyzing subscriber data from ESPN using pivot tables in R. It includes 7 questions analyzing metrics like the number and percentage of males and females by location, average income by gender and location, and the percentage of subscribers by gender and location. For each question, it lists the R code needed to generate the relevant pivot table.

Uploaded by

Athena Chowdhury
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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")

You might also like