Re: [R] working with weekdays

2008-02-18 Thread Gavin Simpson
On Mon, 2008-02-18 at 12:56 +, lamack lamack 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 Here is one way (for all months in 2008), if you

Re: [R] working with weekdays

2008-02-18 Thread Henrique Dallazuanna
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 <[EMAIL PROTECTED]> wrote: > > > Dear all, is it possible create, automatically, a variable with all the > Monday and Thursday? > > 18/02/2008 > 2

[R] working with weekdays

2008-02-18 Thread lamack lamack
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