add_recent_test: Determine Whether Individuals Have Another Test Within 'days'

Description Usage Arguments Value

View source: R/add_nbs_comparison.R

Description

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:

Usage

1
add_recent_test(crf = add_in_nbs(), nbs = load_positive(), days = 90L)

Arguments

crf

Case Report Form data, usually output from add_in_nbs()

nbs

Positive NBS data from load_positive()

days

Range of days for matching test dates

Value

The input crf data with a logical column recent_test added


jesse-smith/covidcrf documentation built on March 28, 2021, 10:45 p.m.