merge_bpdt_w_indicator: Merge a Blood Pressure Data Table with and Indicator Variable

Description Usage Arguments Value Examples

Description

This function allows you to merge a blood pressure dataframe with an indicator variable dataframe on the Patient MRN variable. The variable names for Patient MRN can be different in the two dataframes. (See also: 'wfbmcr::summarize_bp_dt' for blood pressure data table creation and 'wfbmcr::has_seen_nephrologist' for an example of an indicator variable data table creation using nephrology data)

Usage

1
2
merge_bpdt_w_indicator(bp_df, bp_pat_mrn, indic_df, indic_pat_mrn,
  indic_var_name)

Arguments

bp_df

A dataframe which includes summarized blood pressure data (see: 'wfbmcr::summarize_bp_dt')

bp_pat_mrn

Patient MRN variable for the blood pressure dataframe

indic_df

A dataframe which includes indicator variable data (ex: 'wfbmcr::has_seen_nephrologist')

indic_pat_mrn

Patient MRN variable for the indicator variable dataframe

indic_var_name

The name of the indicator variable from the indicator variable dataframe

Value

A merged data table providing blood pressure and indicator variables of interest

Examples

1
2
3
4
5
## Not run: 
merge_bpdt_w_indicator(bp_df, bp_pat_mrn = Patient.MRN, indic_df = neph_df, indic_pat_mrn = PAT_MRN_ID,
indic_var_name = has_seen_neph)

## End(Not run)

jjwillard/wfbmcr documentation built on May 7, 2019, 9:21 p.m.