date_utils | R Documentation |
Date utility helpers for deriving start/end dates.
end_of_month(date)
beg_of_month(date)
start_of_month(date)
date |
Character string or Date representing the date to manipulate. |
Returns the Start or End Date as a Date.
# end_of_month ------------------------------------------------------------
# character input
end_of_month("2020-08-13")
# date input
end_of_month(as.Date("2020-08-13"))
# beg_of_month ------------------------------------------------------------
# character input
beg_of_month("2020-08-13")
# date input
beg_of_month(as.Date("2020-08-13"))
# start_of_month ----------------------------------------------------------
# character input
start_of_month("2020-08-13")
# date input
start_of_month(as.Date("2020-08-13"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.