data_format: Reformat collection dates of HIV samples

Description Usage Arguments Details Value Examples

View source: R/dating.R

Description

This function formats dates in YYYY-MM-DD to decimal format. Decimal format is used in tip dating analysis.

Usage

1
data_format(metadata, country)

Arguments

metadata

Object of class dataframe. It contains information on collection dates for HIV sequences in YYYY-MM-DD format.

country

Object of class character. It should be in the form of "SN" or "SN.CGR".

Details

The returned elements in the list contains 2 dataframes. The first dataframe have all information of collection dates in decimal format, and NA is used for dates in which only part of the collection date is available . For example, when we only know collection date by year and month (YYYY.MM), or year only (YYYY). The second dataframe in the list will have the upper and lower bounds for the samples that we only partially know the collection dates.

Value

A list in which the first element contain information in which the complete collection date is known; the second element of the list contain elements that have missing dating information

Examples

1
# write example here

thednainus/senegalHIVmodel documentation built on Oct. 28, 2021, 3:11 p.m.