tests/testthat/_snaps/miss-x-pct.md

prop_miss* errors on NULL

Code
  prop_miss(NULL)
Condition
  Error in `prop_miss()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  prop_miss_var(NULL)
Condition
  Error in `prop_miss_var()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  prop_miss_case(NULL)
Condition
  Error in `prop_miss_case()`:
  ! Input must not be NULL
  Input is <NULL>

pct_miss* errors on NULL

Code
  pct_miss(NULL)
Condition
  Error in `prop_miss()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  pct_miss_var(NULL)
Condition
  Error in `prop_miss_var()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  pct_miss_case(NULL)
Condition
  Error in `prop_miss_case()`:
  ! Input must not be NULL
  Input is <NULL>

prop_complete* errors on NULL

Code
  prop_complete(NULL)
Condition
  Error in `prop_complete()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  prop_complete_var(NULL)
Condition
  Error in `prop_miss_var()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  prop_complete_case(NULL)
Condition
  Error in `prop_miss_case()`:
  ! Input must not be NULL
  Input is <NULL>

pct_complete* errors on NULL

Code
  pct_complete(NULL)
Condition
  Error in `pct_complete()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  pct_complete_var(NULL)
Condition
  Error in `prop_miss_var()`:
  ! Input must not be NULL
  Input is <NULL>
Code
  pct_complete_case(NULL)
Condition
  Error in `prop_miss_case()`:
  ! Input must not be NULL
  Input is <NULL>

prop_miss* errors when a non-dataframe given

Code
  prop_miss_var(1)
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  prop_miss_var(matrix(0))
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>
Code
  prop_miss_case(1)
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  prop_miss_case(matrix(0))
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>

prop_complete* errors when a non-dataframe given

Code
  prop_complete_var(1)
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  prop_complete_var(matrix(0))
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>
Code
  prop_complete_case(1)
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  prop_complete_case(matrix(0))
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>

pct_miss* errors when a non-dataframe given

Code
  pct_miss_var(1)
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  pct_miss_var(matrix(0))
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>
Code
  pct_miss_case(1)
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  pct_miss_case(matrix(0))
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>

pct_complete* errors when a non-dataframe given

Code
  pct_complete_var(1)
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  pct_complete_var(matrix(0))
Condition
  Error in `prop_miss_var()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>
Code
  pct_complete_case(1)
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  pct_complete_case(matrix(0))
Condition
  Error in `prop_miss_case()`:
  ! Input must inherit from <data.frame>
  We see class: <matrix/array>


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.