I was asked to write code to find the proportions of females and males in each year of a data set but the code turned out to be wrong.
freq.table = table(olympicData$Sex, olympicData$Year)
Total = rowSums(freq.table)
Freq = freq.table/Total`
I was asked to write code to find the proportions of females and males in each year of a data set but the code turned out to be wrong.
freq.table = table(olympicData$Sex, olympicData$Year)
Total = rowSums(freq.table)
Freq = freq.table/Total`