Displaying 1 result from an estimated 1 matches for "cut_n".
Did you mean:
cut'n
2017 Apr 06
1
[bug] in cut.POSIXt(..., breaks = <numeric>)
...value = as.character(if
(is.numeric(breaks)) x[!duplicated(res)] else breaks[-length(breaks)])) :
number of levels differs
-----------------------------
The cause of the bug is that the input have spread out date-time values,
only 10 breaks in the total 20 breaks have value.
-------------------
cut_n <- cut(as.numeric(x), 20)
> unique(cut_n)
[1] (1.057e+09,1.062e+09] (1.062e+09,1.068e+09] (1.068e+09,1.073e+09]
(1.073e+09,1.078e+09]
[5] (1.084e+09,1.089e+09] (1.127e+09,1.132e+09] (1.132e+09,1.137e+09]
(1.137e+09,1.143e+09]
[9] (1.143e+09,1.148e+09] (1.159e+09,1.164e+09]
20 Levels: (1.0...