tests/testthat/_snaps/as_shadow_upset.md

as_shadow_upset errors when given datasets with <= 1 variables

Code
  as_shadow_upset(diag_na(1))
Condition
  Error in `as_shadow_upset()`:
  ! upset plots for missing data requre at least two variables to have missing data, only one variable, 'x1' has missing values.
Code
  as_shadow_upset(data.frame(x = NA))
Condition
  Error in `as_shadow_upset()`:
  ! upset plots for missing data requre at least two variables to have missing data, only one variable, 'x' has missing values.
Code
  as_shadow_upset(data.frame(numeric(0)))
Condition
  Error in `as_shadow_upset()`:
  ! upset plots for missing data requre at least two variables to have missing data, there are no missing values in your data! This is probably a good thing.

as_shadow_upset errors when given non dataframe or 0 entry

Code
  as_shadow_upset(0)
Condition
  Error in `colSums()`:
  ! 'x' must be an array of at least two dimensions
Code
  as_shadow_upset("a")
Condition
  Error in `colSums()`:
  ! 'x' must be an array of at least two dimensions
Code
  as_shadow_upset(matrix(airquality))
Condition
  Error in `as_shadow_upset()`:
  ! upset plots for missing data requre at least two variables to have missing data, there are no missing values in your data! This is probably a good thing.
Code
  as_shadow_upset(NULL)
Condition
  Error in `colSums()`:
  ! 'x' must be an array of at least two dimensions


Try the naniar package in your browser

Any scripts or data that you put into this service are public.

naniar documentation built on May 29, 2024, 1:43 a.m.