Skip to content
Prev 3479 / 21307 Next

[Bioc-devel] runmean and NAs

Hi Florian,

It has been on my TODO and II've just started working on this.
On 07/10/2012 02:19 AM, Hahne, Florian wrote:
Currently no. The Inf creates a numeric Rle

 > Rle(c(1:100, Inf))
'numeric' Rle of length 101 with 101 runs
   Lengths:   1   1   1   1   1   1   1   1 ...   1   1   1   1   1   
1   1   1
   Values :   1   2   3   4   5   6   7   8 ...  94  95  96  97  98  99 
100 Inf

so the code executed is Rle_real_runsum which has this check,

// calculate stat
if (i == 0) {
     if (!R_FINITE(*curr_value))
         error("some values are NA, NaN, +/-Inf");

While I am in there I will address this Inf issue too.

Valerie