getrelationships: GetRelationships

Description Usage Arguments Value

View source: R/dupstatus.R

Description

builds a table showing what relationships each individual in a data frame has with others in the same data frame. Used by dupstatus().

Usage

1
getrelationships(df, idcol = "pidm", xrefslong = NULL)

Arguments

df

a data frame to work on with one line per constituent with one pidm column.

idcol

a string naming the pidm column

xrefslong

an object reference to a data frame built by buildlongxref() on the same data. If NULL, this is generated from data/xaxref-pa.csv and data/xaxref-si.csv.

Value

a data frame with one row per person who has any relationship to someone else in the database. Constituents who are not related to anyone else are removed.


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