range function with finite=T and logical parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

range function with finite=T and logical parameters

Lukas Stadler
Hi!

I was wondering about the behavior of the range function wrt. logical NAs:

> range(c(0L, 1L, NA), finite=T)
[1] 0 1
> range(c(F, T, NA), finite=T)
[1] NA NA

The documentation is quite clear that "finite = TRUE includes na.rm = TRUE”, so that I would have assumed that these two snippets would produce the same result.

- Lukas
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: range function with finite=T and logical parameters

Martin Maechler
Reply | Threaded
Open this post in threaded view
|

Re: range function with finite=T and logical parameters

Tomas Kalibera