[R] number of Mondays
Roy Mendelssohn
Roy.Mendelssohn at noaa.gov
Thu Jan 15 20:44:03 CET 2009
?chron() in particular day.of.week
-Roy
On Jan 15, 2009, at 11:28 AM, Carlos Hernandez wrote:
> dear All,
> i'm trying to calculate the number of Mondays, Tuesdays, etc that
> each month within a date range has. I have time series data that
> spans 60 months and i want to calculate the number of Mondays,
> Tuesdays, Wed, etc of each month. (I want to control for weekly
> seasonality but my data is monthly).
>
> Is there an easy way to to this in R? or is there a package i could
> use? i did some quick search in the help files and R sites but could
> not find any answers.
>
> i appreciate any hint you could give,
>
> thanks.
>
> Carlos
>
> ______________________________________________
> 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.
**********************
"The contents of this message do not reflect any position of the U.S.
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097
e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
More information about the R-help
mailing list