jonmcalder / refactor

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

Missing values in input create error in cut.integer #25

Closed lorenzwalthert closed 7 years ago

lorenzwalthert commented 7 years ago
reprex::reprex_info()
#> Created by the reprex package v0.1.1.9000 on 2017-10-16

library(refactor); cut(c(sample(10), NA, NA), breaks = 3)
#> 
#> Attache Paket: 'refactor'
#> The following objects are masked from 'package:base':
#> 
#>     append, ifelse
#> Error in if (breaks > max(x) - min(x) + 1) {: Fehlender Wert, wo TRUE/FALSE nötig ist