Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detail() shouldn't return Inf for min, max or show warning #59

Closed
jmbarbone opened this issue Nov 19, 2021 · 0 comments
Closed

detail() shouldn't return Inf for min, max or show warning #59

jmbarbone opened this issue Nov 19, 2021 · 0 comments
Labels
bug 🐛 Something isn't working enhancement 💎 Feature enhancement

Comments

@jmbarbone
Copy link
Owner

library(mark)
detail(NA)
#> Warning in min(if (quants) x2 else nc): no non-missing arguments to min;
#> returning Inf
#> Warning in max(if (quants) x2 else nc): no non-missing arguments to max;
#> returning -Inf
#>     class    type label n na min_c max_c level level_n note comment
#> 1 logical logical  <NA> 0  1   Inf  -Inf  <NA>      NA <NA>    <NA>
detail(c(NA, NA))
#> Warning in min(if (quants) x2 else nc): no non-missing arguments to min;
#> returning Inf

#> Warning in min(if (quants) x2 else nc): no non-missing arguments to max;
#> returning -Inf
#>     class    type label n na min_c max_c level level_n note comment
#> 1 logical logical  <NA> 0  2   Inf  -Inf  <NA>      NA <NA>    <NA>

Created on 2021-11-18 by the reprex package (v2.0.1)

@jmbarbone jmbarbone added bug 🐛 Something isn't working enhancement 💎 Feature enhancement labels Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement 💎 Feature enhancement
Projects
None yet
Development

No branches or pull requests

1 participant