Re: [R] working with weekdays

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 18 Feb 2008 10:48:08 -0300

Try this:

values <- seq(as.Date("2008/01/01"), as.Date("2008/12/31"), by="days") values[format(values, "%w") %in% c(1,4)]

On 18/02/2008, lamack lamack <lamac_k_at_hotmail.com> wrote:
>
>
> Dear all, is it possible create, automatically, a variable with all the
> Monday and Thursday?
>
> 18/02/2008
> 21/02/2008
> 25/02/2008
> 28/02/2008
> 03/03/2008
> .
> .
> for all months
>
> Best regards
>
> JL
> _________________________________________________________________
> Confira vídeos com notícias do NY Times, gols direto do Lance, videocas[[elided Hotmail spam]]
>
> ______________________________________________
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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 Mon 18 Feb 2008 - 13:52:36 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 Mon 18 Feb 2008 - 14:30:15 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