Skip to content

Warn if all min/max are NA #9

@maurolepore

Description

@maurolepore
library(tiltAddCO2)

# Expected
# Warning: "All values of `min` are `NA`
data <- tibble::tribble(
  ~min_jitter, ~min, ~max, ~max_jitter,
          0.8,   NA,    2,         2.2,
)
# But NaN with no warning
summarize_noise(data)
#> # A tibble: 1 × 2
#>   min_noise max_noise
#>       <dbl>     <dbl>
#> 1       NaN      10.0

Created on 2024-06-17 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions