R
ranj
I've got a counting problem which I hope someone can help me with.
This is my data:
Column headers:
Song Title,Singer,Duration,Venue 1,Venue 2,Venue 3, Venue n
Data:
Song A,John,1.45m,1,0,1
Song B,John,2.30m,0,1,1
Song C,Jane,2.43,1,0,0
The Venue columns show which songs were performed at each venue. There
are only 2 singers (John and Jane). The 1s and 0s indicate which songs
were performed at which Venue.
Here's my problem. For each venue column, I want to know:
1. How many songs John performed
2. How many songs Jane performed
3. The total duration of all the songs performed
I hope I've explained my problem clearly enough.
Thanks in advance for any help.
Ranj.
This is my data:
Column headers:
Song Title,Singer,Duration,Venue 1,Venue 2,Venue 3, Venue n
Data:
Song A,John,1.45m,1,0,1
Song B,John,2.30m,0,1,1
Song C,Jane,2.43,1,0,0
The Venue columns show which songs were performed at each venue. There
are only 2 singers (John and Jane). The 1s and 0s indicate which songs
were performed at which Venue.
Here's my problem. For each venue column, I want to know:
1. How many songs John performed
2. How many songs Jane performed
3. The total duration of all the songs performed
I hope I've explained my problem clearly enough.
Thanks in advance for any help.
Ranj.