View source: R/rvn_utilities.R
rvn_num_days_month | R Documentation |
Calculates the number of days in the month
rvn_num_days_month(date)
date |
object in date format |
This method includes leap years if they exist in the specified month.
int |
number of days in the month |
rvn_num_days
for calculating the number of days between
two dates
See original code on post in Stack Overflow the number of days in a month
rvn_num_days_month(as.Date("2016-02-05"))
# 29
rvn_num_days_month(as.Date("2017-01-17"))
# 31
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.