Skip to content
Prev 5153 / 21312 Next

[Bioc-devel] seq*apply deprecation

Hi Michael,
On 01/12/2014 05:16 AM, Michael Lawrence wrote:
Sounds good to me.
Why do we need all this?

   x <- RleList(11:14, 3:1)

Then:

   > IRanges:::mapply_List(function(a, b) {a+b}, x, 10)
   [[1]]
   numeric-Rle of length 4 with 4 runs
     Lengths:  1  1  1  1
     Values : 21 22 23 24

   [[2]]
   numeric-Rle of length 3 with 3 runs
     Lengths:  1  1  1
     Values : 13 12 11

But also:

   > base::mapply(function(a, b) {a+b}, x, 10)
   [[1]]
   numeric-Rle of length 4 with 4 runs
     Lengths:  1  1  1  1
     Values : 21 22 23 24

   [[2]]
   numeric-Rle of length 3 with 3 runs
     Lengths:  1  1  1
     Values : 13 12 11

What am I missing?

Thanks,
H.