Find Out Number of Days of a Month in R (2 Examples) | lubridate & Hmisc Package | days_in_month()

preview_player
Показать описание
R code of this video:

my_date <- as.Date("2023-04-10") # Create example date
my_date # Print example date

library("lubridate") # Load lubridate

days_in_month(my_date) # Print days in month

library("Hmisc")

monthDays(my_date) # Print days in month

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

Hi Joachim, do you know a way to plot annual median quantiles in a ggplot graph ?

leonardosoto