Dear Phil,
You helped me with a request to rand matrix columns by deciles two weeks
ago.
This really un-blocked me on this project but I found a little bug.
As in before, my data is in a matrix:
+ cut(x,quantile(x,(0:10)/10,
na.rm=TRUE),label=FALSE,include.lowest=TRUE))
Error in cut.default(x, quantile(x, (0:10)/10, na.rm = TRUE), label = FALSE,
:
'breaks' are not unique
My guess is that we now have 3 "zeros" in each column. For each decile, we
cannot have more than 2 elements (total of 17 numbers in each column) and I
believe R cannot determine where to put the third "zero". Do you have any
solution for this problem?
Many thanks,