how to get every 21 trading days in R lubridate code example
Example: diff days R lubridate
library(lubridate)
difftime(ymd("2018-12-31"), ymd('2010-01-01'), "days")
library(lubridate)
difftime(ymd("2018-12-31"), ymd('2010-01-01'), "days")