The criteria is to list where Obama has a higher number of contributions. The table shows the number of contribution that each presidential candidate received in a state of the country.
The table shown is an example, the query should be generic to a database with hundreds of candidates and dozens of states of the country. The original base has 450 mb, in real database I'm don't know how many contry states Obama has more donations, but in sample is in CA and NA. Michelle wins more contribution on AR.... Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-use-tapply-with-more-than-one-variables-grouped-tp4646948p4647196.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.