Re: [R] Generating weekdays only

2010-10-04 Thread Greg Snow
end days and drop the "!", but I am lazy). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Ro

Re: [R] Generating weekdays only

2010-10-04 Thread David Winsemius
On Oct 4, 2010, at 2:07 PM, Ron Michael wrote: Dear all, can anyone please tell me how to generate a sequence of days continuously, however without considering weekends i.e. Saturday and Sunday? I am aware of following code: seq(as.Date("2010-01-01"), as.Date("2010-02-01"), by="1 day") [

[R] Generating weekdays only

2010-10-04 Thread Ron Michael
Dear all, can anyone please tell me how to generate a sequence of days continuously, however without considering weekends i.e. Saturday and Sunday? I am aware of following code: > seq(as.Date("2010-01-01"), as.Date("2010-02-01"), by="1 day")  [1] "2010-01-01" "2010-01-02" "2010-01-03" "2010-01-0