Re: [R] Detect and replace omitted data

2011-10-18 Thread Jonny Armstrong
Thanks you for the quick and helpful replies. Problem solved. Jonny On Tue, Oct 18, 2011 at 11:33 AM, David Winsemius wrote: > > On Oct 18, 2011, at 2:24 PM, Sarah Goslee wrote: > > Hi Jonny, >> >> On Tue, Oct 18, 2011 at 1:02 PM, Jonny Armstrong >> wrote: >

[R] Detect and replace omitted data

2011-10-18 Thread Jonny Armstrong
I am analyzing the spatial distribution of fish in a stream. The stream is divided into equally sized units, and the number of fish in each unit is counted. My problem is that my dataset is missing rows where the count in a unit equals zero. I need to create zero data for the missing units. For ex