Re: [R] How to selectively sum rows [Beginner question]

2011-10-24 Thread Aaron Siirila
The count() function in the plyr package works beautifully. Thanks to Jim, Rainer and Dennis for your help. Best. -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Monday, October 24, 2011 12:05 PM To: asindc Cc: r-help@r-project.org Subject: Re: [R] How to selecti

Re: [R] How to selectively sum rows [Beginner question]

2011-10-24 Thread Aaron Siirila
Sorry, I attempted to paste the sample data but it must have been stripped out when I posted. It is hopefully now listed below. tapply looks useful. I will check it out further. Here's the sample data: > flights[1:10,] PASSENGERS DISTANCE ORIGIN ORIGIN_CITY_NAME ORIGIN_WAC DEST DEST_CITY_NA