convert_alex_database_med_1: a function used to code antiotics, Biologics,...

Description Usage Arguments Value

View source: R/get_alexdata.R

Description

a function used to code antiotics, Biologics, Enteral.Steroids, en and ppi as yes, no, past use.

Usage

1
convert_alex_database_med_1(medRaw, medName, period)

Arguments

medRaw:

a data frame that contains abx, Biologics, en, Enteral.Steroids, ppi information, contains ehb_id instead of nautilusid

medName:

the name of the medication variable

period:

used to define the current usage of that medication and the unit is days. for example, if period = 10, then the current usage will be defined as within 10 days (10 included) of the sample collect date

Value

medConverted: a data frame that contains yes or no, one column for one medication


reny1/alexdata documentation built on May 29, 2019, 8:06 a.m.