這兩個爲什麼不會返回相同的結果?爲什麼R不像預期的那樣削減工作?
D = data.frame(x=c(0.6))
D$binned = cut(D$x, seq(0.50,0.70,0.025), include.lowest=TRUE, right=FALSE)
D # 0.6 is binned correctly as [0.6,0.625)
D$binned = cut(D$x, seq(0.55,0.65,0.025), include.lowest=TRUE, right=FALSE)
D # 0.6 is binned incorrectly as [0.575,0.6)
變上http://stackoverflow.com/q/9508518/892313 –