Description Usage Arguments Value Examples
It acts similiarly to Excel's DATEDIF function. It returns difference between two dates, either day,month or year, it's up to the user to specify which type of difference user wants.
1 | DATEDIF(start_date, end_date, difference = "d")
|
start_date |
Start date to evaluate the difference |
end_date |
End Date to evaluate the difference |
difference |
What type of difference do you want? Year,Month or Day? Specify "m" for example for month/months, "d" for day/days and "y" for year/years. |
In these examples we have all 3 types of returns, first is difference between specified two dates in days, second one is difference in months and third one is difference in years.Function will always return numeric class.
1 2 3 |
extract_numeric() is deprecated: please use readr::parse_number() instead
[1] 31
[1] 1
[1] 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.