LastDayOfMonth | R Documentation |
Returns the last day of a month.
LastDayOfMonth(year, month, date = NULL)
year |
Year as a number. |
month |
Month as a number. |
date |
If provided, uses year and month from this date. It could be date or a string format date YYYY-MM-DD. |
Last day of the month in the current year.
Diego Jara
# Return last day of the month in year
LastDayOfMonth(year = 2020, month = 2)
# Return last day of the month for the date
LastDayOfMonth(date = '2020-02-03')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.