vac_distinct: Deduplicate Vaccination Data

vac_distinctR Documentation

Deduplicate Vaccination Data

Description

Create distinct vaccination data. Sorts by dose_count prior to calling distinct().

Usage

vac_distinct(data, cols = "asiis_pat_id_ptr", desc = TRUE)

Arguments

data

Vaccination data

cols

<data masking> character vector of variables to use when determining uniqueness. If there are multiple rows for a given combination of inputs, only the first row will be preserved. The default de-duplicates by person.

desc

Should dose_count be arranged in descending order?

Value

An object of the same type as data. The output has the following properties:

  • Rows are a subset of the input but appear in the same order

  • Columns are not modified

  • Groups are not modified

  • Data frame attributes are preserved


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.