jonmcalder / refactor

:bookmark: Better factor handling for R
https://jonmcalder.github.io/refactor/
MIT License
3 stars 0 forks source link

breaks given as numeric should be coerced to integer #7

Closed lorenzwalthert closed 8 years ago

lorenzwalthert commented 8 years ago

Problem

cut.integer with breaks ofc(1, 3.4, 6, 7, 10) creates levels 1-3.4 4.4-6 7-10.

Solution

breaks need to be coerced to integers giving a warning if any decimal numbers were rounded and the resulting breaks should be displayed.