[R] Help fCalendar holidayNYSE for Regressors

From: Idgarad <idgarad_at_gmail.com>
Date: Tue, 17 Jun 2008 10:50:28 -0500

I am working with weekly time series data as in:


I have a table of regression variables that matchs called cReg (loaded from an xls sheet).

I would like to append to the cReg table dummy variables for all the holidays as calculated from the fCalendar package for instance, Easter, Christmas, Memorial Day, etc.)

The problem I am running into is how to get the data that I can get from the fCalendar package into something useful for time series analysis such that my sampled data tsData is weekly but the holiday functions are giving me raw dates.

In short I need to be able to answer "Does this week have a christmas in it? Does this week contain Memorial day, etc."

Any ideas?

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 16:21:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 17:30:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive