Re: [R] Days of the week?

From: John McHenry <john_d_mchenry_at_yahoo.com>
Date: Thu 25 Jan 2007 - 18:02:47 GMT


Gabor,    

  Thank you.    

  The R News 4/1 and the referenced article in R News 1/2 by Ripley and Hornik are   very good introductions.    

  Jack.

Gabor Grothendieck <ggrothendieck@gmail.com> wrote:   You can use as.numeric(format(d, "%w")) . See ?strptime and also the help desk article in R News 4/1.

On 1/24/07, John McHenry wrote:
> Hi WizaRds,
>
> What is the "standard" way to get the day of the week from a date such
> as as.Date("2006-12-01")? It looks like fCalendar has some functions
> but this requires a change in the R locale to GMT. Is there another way?
>
> Thanks!
>
> Jack.
>
>
> ---------------------------------
> Be a PS3 game guru.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>
 



TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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 Fri Jan 26 05:07:50 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 18:30:30 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.