days
R/add_nbs_comparison.R
add_recent_test.Rd
add_recent_test()
adds a column indicating whether a person
(identified using first name, last name, and date of birth) has previously
tested positive within days
of the given test date. The resulting
recent_test
column is:
TRUE
if any previous tests are found
FALSE
if no previous tests are found with complete data
NA
if no previous tests are found with incomplete test date data
add_recent_test(crf = add_in_nbs(), nbs = load_positive(), days = 90L)
crf | Case Report Form data, usually output from
|
---|---|
nbs | Positive NBS data from
|
days | Range of days for matching test dates |
The input crf
data with a logical
column recent_test
added