addspouses: Add Spouses

Description Usage Arguments Value

View source: R/addspouses.R

Description

Add Spouses

Usage

1
addspouses(df, spid = "spouse")

Arguments

df

a data frame with at least a pidm column

spid

if df is a local data frame, spid will be passed to the .id argument of bind_rows()

Value

a data frame with the same columns as df but with additional rows for any spouses. Spouse rows have identical rows to the original data. Union is used, so duplicates are removed.


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