estimateCollectionDates: Estimating dates of sample collection

View source: R/epi__estimateCollectionDates.R

estimateCollectionDatesR Documentation

Estimating dates of sample collection

Description

This function estimates the range of collection dates "YYYY-MM" for each bacterial isolate based on a five-column data frame.

Usage

estimateCollectionDates(dates)

Arguments

dates

A data frame of five columns: Isolate, Collection_date (YYYY-MM-DD, YYYY, YYYY-MM), Collection_date_precision (Y, YM, YMD), Receipt_date (YYYY-MM-DD), Date_of_birth (YYYY-MM-DD; set to NA if this information is not applicable or available). Unknown dates must be NA.

Value

A data frame of the minimum and maximum collection dates of each isolate.


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.