validate_ssn: Cleans SSN

View source: R/validate_ssn.R

validate_ssnR Documentation

Cleans SSN

Description

validate_ssn tidies and standardizes a designated SSN column when possible and sets the value equal to NA when the value is clearly not an SSN. Distinct from the junk_ssn function in this package.

Usage

validate_ssn(DTx, ssnx = NULL)

Arguments

DTx

A data.table

ssnx

Name of variable to check for accuracy of a SSN or PHA ID


PHSKC-APDE/Housing documentation built on Feb. 6, 2024, 3:27 a.m.