prep_acns: Prepare ACNS Data for Use in Case Assignment

Description Usage Arguments Value

View source: R/prep_acns.R

Description

prep_acns() prepares ACNS data for use in case assignment and NBS data management processes. In addition to standardizing the dataset, it adds 3 variables:

school_age

A logical indicating whether a case is school-aged

long_term_care

A logical indicating whether a case is housed in a long-term care facility

duplicate

A logical indicating whether a case is a duplicate

Usage

1
2
3
4
5
6
7
8
prep_acns(
  .data = download_acns(),
  incl_positive = TRUE,
  filter_acns = TRUE,
  filter_lab = TRUE,
  assign = FALSE,
  date = attr(.data, "date")
)

Arguments

.data

Data frame or data frame extension containing ACNS data. If none is supplied, the latest data will be downloaded.

incl_positive

Should the output include new positives from NBS?

filter_acns

Should duplicated data from the previous ACNS files be filtered out?

filter_lab

Should labs in the current ACNS data be filtered from NBS?

assign

Is this data being used for assignment purposes (TRUE) or sms notification (FALSE)? The default is FALSE.

date

The date that the data was reported. This is extracted from the date attribute of a date_tbl.

Value

Prepared data in tibble format


jesse-smith/covidsms documentation built on Dec. 25, 2021, 4:24 a.m.