> On 01 Oct 2015, at 23:04 , Rolf Turner <r.tur...@auckland.ac.nz> wrote: > > On 02/10/15 03:45, David L Carlson wrote: > > <SNIP> > >> If you want the month names: >> >>> mnt <- c("Jan", "Feb", "Mar", "Apr", "May", "Jun", >> + "July", "Aug", "Sep", "Oct", "Nov", "Dec") >>> dimnames(tbl)$Month <- mnt > > <SNIP> > > Unnecessary typing; there is a built-in data set "month.abb" (in the > "base" package) that is identical to your "mnt". > > Difficult (nearly impossible!) to find, but, if you can't quite remember the > name! I *knew* I'd seen it, so I persisted and eventually tracked it down. > > Strangely ??month or help.search("month") yield no trace of it. Pages and > pages of (useless!) output but no sign of "month.abb" (nor of "month.name" > which gives the unabbreviated month names). > > Can anyone explain to me why "??" and help.search() are of no help here?
Umm, ------- Help files with alias or concept or title matching ‘month’ using fuzzy matching: base::Constants Built-in Constants Aliases: month.abb, month.name .... ------- Also, entering "month<TAB><TAB>" gives the completions > month month.abb monthplot months.Date month.name months months.POSIXt -pd > > cheers, > > Rolf Turner > > -- > Technical Editor ANZJS > Department of Statistics > University of Auckland > Phone: +64-9-373-7599 ext. 88276 > > ______________________________________________ > 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.com ______________________________________________ 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.