[R] runmax function only for positive numbers?

Jiucang Hao jiucang at gmail.com
Wed Aug 12 00:07:19 CEST 2009

Hi All,

    I did a google search and could not find the answer. Thus I post this
message. I found runmax only work for positive numbers.
x = rep(-1,10)  

x = rep(0, 10)

for 32-bit R, i got very small numbers:  2.121996e-314
for 64-bit R, i got NaN. 

Is it a bug in runmax? or should this be included in the documentation that
runmax only for positive numbers?

however, we do have a workaround -- runmin works, thus we can do y =


View this message in context: http://www.nabble.com/runmax-function-only-for-positive-numbers--tp24926641p24926641.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list