...: nabster :...


contents

Frequency tables using aggregate in R

Add a column filled with '1's to the existing table.

Then we can use aggregate with the sum function to create a frequency table.

The advantage of this method is that we can aggregate by one, two or more factors.  These factors might be the year and referring speciality.