[R] Is there any month object like LETTERS ?
There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec Thanks, -- View this message in context: http://www.nabble.com/Is-there-any-%22month%22-object-like-%22LETTERS%22---tp25396125p25396125.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list 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.
Re: [R] Is there any month object like LETTERS ?
On Fri, Sep 11, 2009 at 8:13 AM, megh megh700...@yahoo.com wrote: There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec You could construct a vector of the first of the month for some year and then use months() or format() on it: months(ISOdatetime(1960,1:12,1,0,0,0)) [1] January February March April May June [7] July AugustSeptember October November December format(ISOdatetime(1960,1:12,1,0,0,0),%b) [1] Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Note these are locale-dependent, so les Francais will see something else. Probably Jan,Fev,Mar,Avr and so on... Barry __ R-help@r-project.org mailing list 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.
Re: [R] Is there any month object like LETTERS ?
See ?Constants On Fri, Sep 11, 2009 at 3:13 AM, megh megh700...@yahoo.com wrote: There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec Thanks, -- View this message in context: http://www.nabble.com/Is-there-any-%22month%22-object-like-%22LETTERS%22---tp25396125p25396125.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list 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. __ R-help@r-project.org mailing list 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.
Re: [R] Is there any month object like LETTERS ?
On my R 2.9.2 installation, ?Constants just says No documentation I don't know why Gabor and I would have different results. However, ?LETTERS does provide the requested information. -Don At 7:30 AM -0400 9/11/09, Gabor Grothendieck wrote: See ?Constants On Fri, Sep 11, 2009 at 3:13 AM, megh megh700...@yahoo.com wrote: There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec Thanks, -- View this message in context: http://*www.*nabble.com/Is-there-any-%22month%22-object-like-%22LETTERS%22---tp25396125p25396125.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list 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. __ R-help@r-project.org mailing list 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. -- -- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062 __ R-help@r-project.org mailing list 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.
Re: [R] Is there any month object like LETTERS ?
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Don MacQueen Sent: Friday, September 11, 2009 8:16 AM To: Gabor Grothendieck; megh Cc: r-help@r-project.org Subject: Re: [R] Is there any month object like LETTERS ? On my R 2.9.2 installation, ?Constants just says No documentation I don't know why Gabor and I would have different results. However, ?LETTERS does provide the requested information. In the upper left corner of the help for LETTERS is Constants(base) and usually that means that ?Constants would give you the same help file. All Rd files have one name entry and one or more alias entries. help() or ? looks in the list of alias entries, not the name, but most help files include the name in the aliases. src/library/base/man/Constants.Rd does not and probably should do that also. -Don At 7:30 AM -0400 9/11/09, Gabor Grothendieck wrote: See ?Constants On Fri, Sep 11, 2009 at 3:13 AM, megh megh700...@yahoo.com wrote: There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec Thanks, -- View this message in context: http://*www.*nabble.com/Is-there-any-%22month%22-object-like -%22LETTERS%22---tp25396125p25396125.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list 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. __ R-help@r-project.org mailing list 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. -- -- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062 __ R-help@r-project.org mailing list 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. __ R-help@r-project.org mailing list 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.
Re: [R] Is there any month object like LETTERS ?
month.abb should do the trick _ View your other email accounts from your Hotmail inbox. Add them now. __ R-help@r-project.org mailing list 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.