Re: [R] Count variables by ID

2010-02-10 Thread David Winsemius
On Feb 10, 2010, at 5:58 PM, travelmail wrote: Hello, I have an education dataset and I'd like to know how to count the number of courses each student has taken in a particular subject. For instance, say the course codes for "History" are 20-26 & 31 and I have the following data Stude

[R] Count variables by ID

2010-02-10 Thread travelmail
Hello, I have an education dataset and I'd like to know how to count the number of courses each student has taken in a particular subject. For instance, say the course codes for "History" are 20-26 & 31 and I have the following data Student ID Course Code 1 16 1