I've just come back to R from a long hiatus writing and I'm having some real problems remembering how to reshape data. 
I know that what I want to do is easy, but for some reason I'm being dumb tonight and have confused myself with melt and reshape.
If anyone could quickly point me in the right direction it would be hugely appreciated. 

I have a dataframe as such:

```
person    week    year   
personA   6       1
personA   22      1
personA   41      1
personA   42      1
personA   1       2
personA   23      2
personB   8       2
personB   9       2
....
personN   x       y

```

I want to end up with a count of events by year and by person: 
(so that I can plot a quick line graph for each person over the years )

e.g.

```
person    year1    year2
personA   4        2
personB   0        2

```

Many thanks for reading.