add.admissions: Add an "admissions" column

Description Usage Arguments Details Value

View source: R/add.admissions.r

Description

Add an "admissions" column

Usage

1

Arguments

X

a data frame

Details

Add a column with a the number of admissions, computed as diff(X$hosp) + diff(X$rad) + diff(X$dc). Special care is given to the case of missing days.

Value

An identical data frame with an "admissions" column.


HervePerdry/covid19.SPF documentation built on Jan. 30, 2022, 7:22 p.m.