Re: [R] counting weekday in a month in R

2007-12-13 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of tom soyer > Sent: Thursday, December 13, 2007 1:27 PM > To: r-help@r-project.org > Subject: [R] counting weekday in a month in R > > Hi, > > I am trying to count wee

[R] counting weekday in a month in R

2007-12-13 Thread tom soyer
Hi, I am trying to count weekday of the month using R. For example, 1/4/2001 is the 4th weekday of Jan, and 1/5/2001 is the 5th weekday of the month, and 1/8/2001 is the 6th weekday of the month, etc. I get as far as extracting the weekdays from a sequence of dates (see below). But I have not yet