tests/testthat/_snaps/impute_mean.md

impute_mean and scoped variants fail when given wrong input

Code
  impute_mean_if(numeric(0))
Condition
  Error in `impute_mean_if()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_at(numeric(0))
Condition
  Error in `impute_mean_at()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_all(numeric(0))
Condition
  Error in `impute_mean_all()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_if(NULL)
Condition
  Error in `impute_mean_if()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>
Code
  impute_mean_at(NULL)
Condition
  Error in `impute_mean_at()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>
Code
  impute_mean_all(NULL)
Condition
  Error in `impute_mean_all()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>
Code
  impute_mean_if(numeric(0))
Condition
  Error in `impute_mean_if()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_at(numeric(0))
Condition
  Error in `impute_mean_at()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_all(numeric(0))
Condition
  Error in `impute_mean_all()`:
  ! Input must inherit from <data.frame>
  We see class: <numeric>
Code
  impute_mean_if(NULL)
Condition
  Error in `impute_mean_if()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>
Code
  impute_mean_at(NULL)
Condition
  Error in `impute_mean_at()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>
Code
  impute_mean_all(NULL)
Condition
  Error in `impute_mean_all()`:
  ! Input must inherit from <data.frame>
  We see class: <NULL>


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.