Re: [R] previous business day

2010-10-22 Thread Li, Jing Yi
Thanks for the info! -Original Message- From: David Scott [mailto:d.sc...@auckland.ac.nz] Sent: Friday, October 22, 2010 4:19 PM To: David Reiner Cc: Li, Jing Yi; r-help@r-project.org Subject: Re: [R] previous business day On 23/10/2010 4:59 a.m., David Reiner wrote: > Look at

Re: [R] previous business day

2010-10-22 Thread David Scott
mius Cc: r-help@r-project.org Subject: RE: [R] previous business day yes. do you know the name of related functions in the timeDate package? Thanks! -Original Message- From: David Reiner [mailto:david.rei...@xrtrading.com] Sent: Friday, October 22, 2010 10:10 AM To: Li, Jing Yi; David Winse

Re: [R] previous business day

2010-10-22 Thread Li, Jing Yi
-project.org Subject: RE: [R] previous business day Look at the documentation for timeDate and try ?timeNdayOnOrBefore after loading the package. -- David -Original Message- From: Li, Jing Yi [mailto:jingyi...@credit-suisse.com] Sent: Friday, October 22, 2010 9:38 AM To: David Reiner; David

Re: [R] previous business day

2010-10-22 Thread David Reiner
: RE: [R] previous business day yes. do you know the name of related functions in the timeDate package? Thanks! -Original Message- From: David Reiner [mailto:david.rei...@xrtrading.com] Sent: Friday, October 22, 2010 10:10 AM To: Li, Jing Yi; David Winsemius Cc: r-help@r-project.org Subject

Re: [R] previous business day

2010-10-22 Thread Li, Jing Yi
PM To: David Winsemius Cc: r-help@r-project.org Subject: Re: [R] previous business day Thanks a lot for all your reply! It really helps! Somehow I remember there is some package which can provide financial exchange calendars, like NYSE holidays, not sure where to find it. -Original Message

Re: [R] previous business day

2010-10-22 Thread David Reiner
To: David Winsemius Cc: r-help@r-project.org Subject: Re: [R] previous business day Thanks a lot for all your reply! It really helps! Somehow I remember there is some package which can provide financial exchange calendars, like NYSE holidays, not sure where to find it. -Original Message

Re: [R] previous business day

2010-10-21 Thread Li, Jing Yi
, 2010 4:34 PM To: Li, Jing Yi Cc: Clint Bowman; Henrique Dallazuanna; r-help@r-project.org Subject: Re: [R] previous business day On Oct 21, 2010, at 4:20 PM, Li, Jing Yi wrote: > Yeah, thanks Henrique for the code. It works! But I also have the > questions for the holidays. > >

Re: [R] previous business day

2010-10-21 Thread David Winsemius
] Sent: Thursday, October 21, 2010 4:16 PM To: Henrique Dallazuanna Cc: Li, Jing Yi; r-help@r-project.org Subject: Re: [R] previous business day May also wish to "or" in a check for holidays. -- Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler

Re: [R] previous business day

2010-10-21 Thread Li, Jing Yi
: Thursday, October 21, 2010 4:16 PM To: Henrique Dallazuanna Cc: Li, Jing Yi; r-help@r-project.org Subject: Re: [R] previous business day May also wish to "or" in a check for holidays. -- Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler

Re: [R] previous business day

2010-10-21 Thread Clint Bowman
May also wish to "or" in a check for holidays. -- Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600FAX:(36

Re: [R] previous business day

2010-10-21 Thread Henrique Dallazuanna
Try this: f <- function(d)if(format(d - 1, '%w') %in% c(0, 6)) Recall(d - 1) else d - 1 d <- Sys.Date() f(d) On Thu, Oct 21, 2010 at 5:38 PM, Li, Jing Yi wrote: > How to get the previous business day in R? I saw some post about using > functions in timeSeries package before but can not find it a

Re: [R] previous business day

2010-10-21 Thread David Winsemius
On Oct 21, 2010, at 9:38 PM, Li, Jing Yi wrote: How to get the previous business day in R? I saw some post about using functions in timeSeries package before but can not find it anymore. ??holiday Perhaps you should look in the "tis" package. Thanks! David Winsemius, MD West Hartford,

[R] previous business day

2010-10-21 Thread Li, Jing Yi
How to get the previous business day in R? I saw some post about using functions in timeSeries package before but can not find it anymore. Thanks! === Please access the attached hyperlink for an important el...{{dropped