get_anon_chi: Match on anon_chi to a dataset using CHI numbers

View source: R/get_anon_chi.R

get_anon_chiR Documentation

Match on anon_chi to a dataset using CHI numbers

Description

Match on anon_chi to a dataset using CHI numbers

Usage

get_anon_chi(chi_cohort, chi_var = "chi", drop = TRUE, check = TRUE)

Arguments

chi_cohort

a tibble or data frame.

chi_var

CHI variable: the name of the variable containing CHI (default is chi).

drop

Optional boolean indicating whether the existing chi_var should be dropped - default is TRUE.

check

Optional boolean, should the CHIs be checked using phsmethods::chi_check() - default is TRUE.

Value

a tibble

Examples

## Not run: 
chi_cohort %>% get_anon_chi()
chi_cohort %>% get_anon_chi(chi_var = "upi_number")

## End(Not run)

Moohan/slfhelper documentation built on April 25, 2024, 5:24 a.m.