Skip to content
Prev 58425 / 398502 Next

cut POSIX results in NA - bug?

On Wed, 3 Nov 2004, Petr Pikal wrote:

            
cut(datum[1370:1381],"hour", labels=F, include.lowest=T)

is what you need.  See ?cut, in the See Also, which says

include.lowest: logical, indicating if an 'x[i]' equal to the lowest
          (or highest, for 'right = FALSE') 'breaks' value should be
          included.
It is the documented behaviour, for better or for worse.