In the S-PLUS 6 for Windows Guide to Statistics, Volume 2 July
(2001), page 186, the following code is given:
> rt <- timeRelative("-a0mth - 1fri + 3fri")
> timeDate(c("1/5/1998", "2/26/1998"),
+ format = "%a %m/%d/%Y") + rt
[1] Fri 1/16/1998 Fri 2/20/1998
I have not been able to reproduce this, using S-PLUS 6.2 for
Windows, build 6713:
> rt <- timeRelative("-a0mth - 1fri + 3fri")
> rt
[1] "-a0mth - 1fri + 3fri"
> timeDate(c("1/5/1998", "2/26/1998"), format = "%a %m/%d/%Y") + rt
[1] NA NA
>
Is there a library or option i need to load or set?
--
Thanks!
David
-----------------------------------------------------
David Huffer, Senior Statistician
Court Services and Offender Supervision Agency
633 Indiana Avenue, NW, Suite 1374
Washington, DC 20004-2902
Voice: W(202) 220-5701 M(240) 426-3474
Fax: W(202) 220-5413 H(810) 963-2560
Email: david.huffer@csosa.gov
-----------------------------------------------------
|