Skip to content
Prev 1923 / 63421 Next

tabulate causes segmentation fault (PR#156)

wvenable@arcola.stats.adelaide.edu.au writes:
It wasn't...

However, all it needs is a bit of defensive programming. But should it

(a) Protest if any(bin)>nbins
or 
(b) Quietly set bin[bin>nbins] <- 0  # or NA, no matter

(one could also start the routine with bin<-bin[bin<=nbin])

I think (b) since that is consistent with the way values <= 0 are
currently handled.