I want it to display a frequency table of total domestic ( which includes Boston + salt lake city) and total frequency of international ( London + Shanghai). But it prints it out like this.
table$Category<-c("Domestic","International")
> table
problem.6.data Freq Category
1 Boston 136 Domestic
2 London 102 International
3 Salt Lake City 277 Domestic
4 Shanghai 184 International
I want an output of:
1. Domestic: 136+277
2. International: 102+ 184
so, in the end the table should look like:
- Domestic: 413
- International: 286
What am I doing wrong?