Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
There's a new class "yearmonth" from the tsibble package. Its underlying class is Date.
library(lubridate) #> #> Attaching package: 'lubridate' #> The following object is masked from 'package:base': #> #> date x <- tsibble::yearmonth(Sys.Date()) x #>  "2018 Aug" class(x) #>  "yearmonth" "Date" leap_year(x) #> Error in leap_year(x): unrecognized date format year(x) #>  2018
Created on 2018-08-07 by the reprex