Closed lorenzwalthert closed 8 years ago
Because of the assertive test in cut.integer for breaks, something like cut(sample(10), breaks = c(1L, 3L, 10L) fails.
cut.integer
breaks
cut(sample(10), breaks = c(1L, 3L, 10L)
Use assert(check_class(breaks, "integer"), check_class(breaks, "numeric"))
assert(check_class(breaks, "integer"), check_class(breaks, "numeric"))
Problem
Because of the assertive test in
cut.integer
forbreaks
, something likecut(sample(10), breaks = c(1L, 3L, 10L)
fails.Solution
Use
assert(check_class(breaks, "integer"), check_class(breaks, "numeric"))