Re: [R] split and subset

2008-05-06 Thread Henrique Dallazuanna
Try this: subset(dat, format(date, "%Y-%m") == "1999-11") On Tue, May 6, 2008 at 12:25 PM, <[EMAIL PROTECTED]> wrote: > Dear list: > > I ask for your help in a simple problem in which I'm not figuring out > the solution > > My data looks like: > dat<- data.frame(date=c("12/12/1980", "03/11/199

[R] split and subset

2008-05-06 Thread partofy
Dear list: I ask for your help in a simple problem in which I'm not figuring out the solution My data looks like: dat<- data.frame(date=c("12/12/1980", "03/11/1994", "15/11/1999", "31/10/2000", "20/03/2007", "05/01/2001"), var1=c("A", "A", "B", "D", "C", "A"), var2=runif(6)) I was wondering if