getDelayIf: getDelayIf

View source: R/getDelayIf.R

getDelayIfR Documentation

getDelayIf

Description

return the delay between two date with condition if condition are validated then the delay in days from date one to date two is returned else NA is returned

Usage

getDelayIf(data, FirstDateName, SecondDateName, ...)

Arguments

data

The dataset containing the values

FirstDateName

The first date

SecondDateName

The second date

...

one or more logical condition to validate. If one of the condition is not TRUE, NA is returned instead of the calculated delay

Value

a vector of the same length than the passed dataset

Examples

## Not run: 
   getDelayIf(data, FirstDateName, SecondDateName, SecondDateName > FirstDateName + 14)

## End(Not run)


Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.