Hi Marcin,
I'm not sure I agree with that Stack Overflow answer. Sure,
ceiling(1:100/10) is a neat arithmetical trick to get what you want, but it
would be a lot more obvious to me at least to use rep(1:10, each=10). And
even better to use Partitioning objects when you have IRanges around. If
you
Sorry about that. I pushed a fix to devel (2.9.14) and soon release. Btw,
it's not typically a good idea to use a real valued vector as a factor. In
this case, you could use %/% or better yet a partitioning, i.e., relist(ir,
PartitioningByEnd(seq(10, 100, 10))).
Michael
On Sun, Dec 4, 2016 at 8: