DAYS {ExcelFunctionsR} | R Documentation |
Basic DAYS function from excel
Description
It acts similiarly to Excel's DAYS function. It calculates the difference between two dates in days.
Usage
DAYS(start_date, end_date)
Arguments
start_date |
Give the start_date argument so it can calculate days. |
end_date |
Give the end_date argument so it can calculate days. |
Value
In this example we are interested how many days there are between 1st February 2020 and 15th February 2020 which is 14. Function will always return numeric class.
Examples
DAYS(DATE(2020,2,1),DATE(2020,2,15))
[Package ExcelFunctionsR version 0.1.4 Index]