range with NA handling

range_na(...)

Arguments

...

numeric or character vector

Value

range or c(NA, NA) if all values are NA

Examples

range_na(2, 3, NA)
#> [1] 2 3
range_na(NA, NA)
#> [1] NA NA