I have monthly data
library(zoo); library(data.table)
dat <- data.table(month=as.yearmon(paste0(“2019-0“,1:9), “%Y-%m“))
and I would like to subset it to months after, say, May 2019. Whereas
dat[month==“Apr 2019“]
works,
dat[month>“May 2019“]
does not. Is there a trick?