match_records: Match records

match_recordsR Documentation

Match records

Description

This function matches records in dataset A to records in dataset B using the ABE method. The matched dataset includes both standard and conservative ABE matches.

Usage

match_records(
  file_A,
  fname_var_A,
  lname_var_A,
  time_var_A,
  id_var_A,
  vars_to_keep_A,
  file_B,
  fname_var_B,
  lname_var_B,
  time_var_B,
  id_var_B,
  vars_to_keep_B,
  out_path,
  out_file_name,
  timeband = 2,
  uniqueband_file = 2,
  uniqueband_match = 2
)

Arguments

file_A

Dataset A

fname_var_A

First name column in dataset A

lname_var_A

Last name column in dataset A

time_var_A

Time column in dataset A

id_var_A

ID column in dataset A

vars_to_keep_A

Other columns to be kept from dataset A

file_B

Dataset B

fname_var_B

First name column in dataset B

lname_var_B

Last name column in dataset B

time_var_B

Time column in dataset B

id_var_B

ID column in dataset B

vars_to_keep_B

Other columns to be kept from dataset B

out_path

Path to the directory where the output file will be saved

out_file_name

Output filename

timeband

Time band used when searching for nonexact matches

uniqueband_file

Uniqueness band used for conservative ABE (within)

uniqueband_match

Uniqueness band used for conservative ABE (between)


caseybreen/wcensoc documentation built on Nov. 21, 2024, 5:15 a.m.