date_pull: Shared pre-processing of input CSV files

date_pullR Documentation

Shared pre-processing of input CSV files

Description

Shared pre-processing of input CSV files

Preprocessing step for all aggregations. Currently: remaps outcome to death, discharge or NA, cuts age into 5-year age groups, and adds a year-epiweek column

Usage

date_pull

date_pull

Arguments

file.name

Path of the data file (CDISC format)

excluded.columns

Columns to be removed

dtplyr.step

Return the output as dtplyr_step to avoid unnecessary future calls to as_tibble or as.data.table

input.tbl

Input tibble (output of process.all.data)

Format

An object of class Date of length 1.

An object of class Date of length 1.

Value

The contents of file.name as a tibble or dtplyr_step

A tibble intended for input into other aggregation functions (e.g. age.pyramid.prep)


ISARICDataPlatform/CovidClinicalDataProcessor documentation built on March 22, 2022, 7:51 p.m.