All u guys are really great. I am just encolsing the
summary of all the replies I have recieved for the
request for applying calendarized week day data.
library(chron, first = T)
is.weekend(dates("02/04/2001"))
x <- seq.dates(dates("02/04/01"), dates("02/20/01"),
by="weekdays")
data.frame(x,weekdays(x)
#Both Great Methods.
Special thanks to David James , Nick Ellis.
If any one needs the complete information can contact
me directly. Thanks again for all your help.
-----Original Message-----
> Date: Wed, 18 Apr 2001 11:12:12 -0700 (PDT)
> From: Mandans <mandans_p@yahoo.com>
> Subject: [S] Calendarized week day data.
> To: s-news@lists.biostat.wustl.edu
> MIME-Version: 1.0
> Hi.all
> Let me thank all..For the quick correspondance for
my
> earlier mail. U guys are really great.
>
> I have another question. I am using S-plus
> 4.5 on Windows NT and have a data frame with couple
of
> columns.
>
> How Do I create a calendarized time series with Week
> day data only and not weekends. Data for example
>
> 02/04/2001 - Monday
> 02/05/2001 - Tuesday
> 02/06/2001 - Wednesday
> 02/07/2001 - Thursday
> 02/08/2001 - Friday
> 02/11/2001 - Monday
> .....
> Etc
>
> Thanks for all your help in advance.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
|