zip_invalid: Getting Invalid Examples and Summaries for Patient_Zip

Description Usage Arguments Value

View source: R/zip_invalid.R

Description

This function will generate two data frames: first, a frame to be used later to extract invalid examples from; second, a frame that contains facility-level summaries for counts and percentages of invalid Patient_Zip. Patient_Zip is considered invalid if it: first, contains anything that is non-numeric or a hypen; second, is not five, nine, or ten characters (ten is included because of the hyphen); third, if it is all zeros, ones, or nines.

Usage

1

Arguments

data

The data on which you will do the invalid patient ZIP checks.

Value

A list of two data frames: examples and summary for invalid Patient_Zip.


SophiaLC/IHI_DQ documentation built on Oct. 23, 2020, 2:35 a.m.