[R] Cut breaks in descending order

2015-04-03 Thread Wing Keong Lew
Hi, Is it a requirement to provide the break intervals of the cut function in ascending order? The help documentation for cut didn't specify this but the labels returned are reversed if I indicate the break intervals in a descending order. Here is an example tbl-data.frame(x=c(0:10))

Re: [R] Cut breaks in descending order

2015-04-03 Thread David Winsemius
On Apr 3, 2015, at 5:09 AM, Wing Keong Lew wrote: Hi, Is it a requirement to provide the break intervals of the cut function in ascending order? Apparently not. I get teh sam splits even with random permutations. It is apparently a requirement to make sure you labels match the sorted