getDelayIf | R Documentation |
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
getDelayIf(data, FirstDateName, SecondDateName, ...)
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 |
a vector of the same length than the passed dataset
## Not run:
getDelayIf(data, FirstDateName, SecondDateName, SecondDateName > FirstDateName + 14)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.