matchforpidms: Get new pidms

Description Usage Arguments Details Value

View source: R/matchfunctions.R

Description

Uses several matching functions to append new pidms to an existing data frame. Input should be a data frame with most (preferably all) of the columns you'd need to match on. Note, this is a time consuming function, as it pulls and maninpulates all constituent data. d

Usage

1

Arguments

x

a data frame with most (preferably all) the columns to match on

Details

Matching is performed on the following fields, in this order:

  1. existing pidm column

  2. email

  3. lastname, firstname

  4. lastname, first initial

  5. lastname, address (only the first 70\

In all cases, matches are only made when one match is possible. Also, all text fields are set to lowercase and punctuation is removed. Note that missing data currently throws an error–if any columns are missing, we recommend adding a column with all NA values.

Value

a data frame with nrows(x) with multiple columns appended, namely finalpidm, which has the function's best guess of what the pidms should be.


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.