check_input_dates {cbpManager} | R Documentation

## Check the input of dates

### Description

Check the input of dates

### Usage

    check_input_dates(diagnosisDate, startDate = NULL, endDate = NULL)

### Arguments

`diagnosisDate` | date of first diagnosis
`startDate` | start date of timeline event
`endDate` | end date of timeline event

### Value

Returns a number indicating the warning

### Examples

    cbpManager:::check_input_dates(
        diagnosisDate = "2020-01-01",
        startDate = "2020-02-01",
        endDate = "2020-03-01"
    ) #returns 0
    cbpManager:::check_input_dates(
        diagnosisDate = "2020-01-01",
        startDate = "2019-02-01"
    ) #returns 2
    cbpManager:::check_input_dates(
        diagnosisDate = "2020-01-01",
        endDate = "2019-02-01"
    ) #returns 2
    cbpManager:::check_input_dates(
        diagnosisDate = "2020-01-01",
        startDate = "2020-03-01",
        endDate = "2020-02-01"
    ) #returns 1

[Package cbpManager version 1.0.2 Index]