[R] yeardays

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 25 08:18:03 CEST 2004


On Tue, 25 May 2004, Steve Su wrote:

> Is there a R (Windows) equivalent of yeardays in Splus 6.0 for Windows?
> I am using XP.

You could tell us what that did ... that version of S-PLUS (sic) is long 
obselete and most readers will not have access to it (or any other recent 
version of S-PLUS).

It would appear to be one plus the yday component of a POSIXlt object, so

as.POSIXlt(x)$yday + 1

should be equivalent.  See ?months for relevant comments.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list