tests/testthat/_snaps/label-miss-2d.md

label_miss_2d errors on the first NULL entry

Code
  label_miss_2d(NULL, 3)
Condition
  Error in `label_miss_2d()`:
  ! Input cannot be NULL
  We see the first argument, `x1` is: <NULL>
  We see the second argument, `x2` is: <numeric>

label_miss_2d errors on the second NULL entry

Code
  label_miss_2d(3, NULL)
Condition
  Error in `label_miss_2d()`:
  ! Input cannot be NULL
  We see the first argument, `x1` is: <numeric>
  We see the second argument, `x2` is: <NULL>

label_miss_2d errors when both are NULL

Code
  label_miss_2d(NULL, NULL)
Condition
  Error in `label_miss_2d()`:
  ! Input cannot be NULL
  We see the first argument, `x1` is: <NULL>
  We see the second argument, `x2` is: <NULL>

label_miss_2d identifies the correct location of missingness

Code
  label_miss_2d(test_df$x, test_df$y)
Output
  [1] Missing     Missing     Not Missing
  Levels: Missing Not Missing
Code
  label_miss_2d(test_df$y, test_df$z)
Output
  [1] Not Missing Missing     Not Missing
  Levels: Missing Not Missing
Code
  label_miss_2d(test_df$x, test_df$z)
Output
  [1] Missing     Not Missing Not Missing
  Levels: Missing Not Missing


njtierney/naniar documentation built on March 19, 2024, 9:48 p.m.