translate_acns: Translate ACNS Data to REDcap-Useable Format

Description Usage Arguments Value

View source: R/translate_acns.R

Description

translate_acns() maps fields from ACNS data to REDcap data and excludes duplicates + cases older than days old.

Usage

1
2
3
4
5
6
translate_acns(
  .data = covidsms::prep_acns(assign = TRUE),
  date = lubridate::today(),
  days = 6L,
  archive = TRUE
)

Arguments

.data

ACNS data. Runs covidsms::prep_acns(assign = TRUE) by default.

date

The date to use for assignment; unlike in other functions, this defaults to today's date as part of the "translation" process.

days

Number of days back to consider valid. test_date older than this will not be assigned.

archive

Should data be archived (before deduplicating)?

Value

The data mapped to REDcap field names


jesse-smith/covidassign documentation built on Aug. 23, 2021, 12:59 a.m.