rvn_num_days {RavenR} | R Documentation |
rvn_num_days is used to calculate the number of days between two provided dates.
rvn_num_days(date1, date2)
date1 |
first day, date format |
date2 |
second day, date format |
This method handles leap years if they exist between the specified dates.
int |
number of days between the two days |
rvn_num_days_month
for calculating the number of days in a
month
rvn_num_days(as.Date("2017-02-05"),as.Date("2017-02-12")) # 7