SyntaxFix
Write A Post
Hire A Developer
Questions
You can use format:
format
library(zoo) x <- as.yearmon(Sys.time()) format(x,"%b") [1] "Mar" format(x,"%Y") [1] "2012"