Skip to content
Prev 299403 / 398503 Next

replacement has length zero

On 2012-07-07 03:19, fabiano wrote:
Have you taken a look at just what 'Hab' and 'habitat' contain?
It looks to me that 'habitat' is not a set of integers which it
would have to be to get habitat==i to be TRUE. I guess that
Hab[habitat==i, 1] is the empty set (hence 'length zero').

Peter Ehlers