rvn_num_days {RavenR} | R Documentation |
Number of Days between two dates
Description
Calculate the number of days between two provided dates.
Usage
rvn_num_days(date1, date2)
Arguments
date1 |
first day, date format |
date2 |
second day, date format |
Details
This method handles leap years if they exist between the specified dates.
Value
int |
number of days between the two days |
See Also
rvn_num_days_month
for calculating the number of days in a
month
Examples
rvn_num_days(as.Date("2017-02-05"),as.Date("2017-02-12"))
# 7
[Package RavenR version 2.2.2 Index]