>>>>> "CB" == Christofer Bogaso <bogaso.christo...@gmail.com> writes:
CB> Hi, CB> I am wondering if there is any way to get the full name from as.yearmon() CB> function. Please consider below example: CB> library(quantmod) CB> as.yearmon(Sys.Date()) CB> This gives: [1] "Apr 2019". CB> How can I extract the full name ie. 'April 2019' CB> Appreciate your pointer. Thanks, library("zoo") ## where 'as.yearmon' comes from format(as.yearmon(Sys.Date()), "%B %Y") ## [1] "April 2019" Note that this will give you the full monthname in your locale. -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.