Error in dimnames(x) <- dn :

I have used the same script (except for changes in interval lengths) for three other data sets without a problem. Unfortunately for my last encounter history I need to run I am encountering this error:
I've double checked my interval lengths and code and kind find any inconsistencies with my previously successful runs on other encounter histories.
Any ideas?
thanks
Amanda
Error in dimnames(x) <- dn :
length of 'dimnames' [1] not equal to array extent
I've double checked my interval lengths and code and kind find any inconsistencies with my previously successful runs on other encounter histories.
Any ideas?
thanks
Amanda