Dear all,
I was playing around with factor contrasts, and found the argument nmax on
function factor. When using nmax=1, R froze completely, and I had to close it
from task manager. After some debugging, I found that the problem is actually
in unique-function, where the internal unique function is called:
.Internal(unique(x, incomparables, fromLast, nmax))
More generally, it looks like unique(x,nmax=k) freezes R the length of x is
larger than 2 and k=1, and when nmax<length(x)-1 you get error "Error in
unique.default(1:5, nmax = 3) : hash table is full".
Of course using nmax=1 doesn't make much sense, but maybe some check would be
in place before calling internal unique?
Best regards,
Jouni Helske
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel