2DegreesInvesting / tiltIndicator

Indicators for the TILT project
https://2degreesinvesting.github.io/tiltIndicator/
GNU General Public License v3.0
1 stars 1 forks source link

`summarize_range()` gains `na.rm` and defaults to removing `NA`s #743

Closed maurolepore closed 4 months ago

maurolepore commented 4 months ago

devtools::load_all()
#> ℹ Loading tiltIndicator

data <- tibble::tibble(x = c(1, 2, 3, NA))

# Now
data |> summarize_range(x, na.rm = TRUE)
#> # A tibble: 1 × 2
#>     min   max
#>   <dbl> <dbl>
#> 1     1     3

# Bad
data |> summarize_range(x)
#> # A tibble: 1 × 2
#>     min   max
#>   <dbl> <dbl>
#> 1    NA    NA

TODO

EXCEPTIONS