Skip to contents

This function runs a workflow of the minimum number of checks required for a user to run missing_value_check; the checks include field_check and pkg_field_check.

Usage

mv_precheck(dict, data)

Arguments

dict

Data dictionary.

data

Data set.

Value

Tibble containing the following information for each check: (1) Time (time stamp); (2) Name (name of the function); (3) Status (Passed/Failed); (4) Message (A copy of the message the function printed out); (5) Information (More detailed information about the potential errors identified).

Examples

data(ExampleB)
mv_precheck(DD.dict.B, DS.data.B)
#> # A tibble: 3 × 5
#>   Time                Function        Status Message                 Information
#>   <dttm>              <chr>           <chr>  <chr>                   <named lis>
#> 1 2023-09-27 11:01:19 field_check     Passed Passed: required field… <lgl [4]>  
#> 2 2023-09-27 11:01:19 pkg_field_check Passed Passed: package-level … <lgl [3]>  
#> 3 2023-09-27 11:01:19 name_check      Passed Passed: the variable n… <chr [1]>