Re: [R] subset in dataframes

2011-10-02 Thread Cecilia Carmo
2011 13:01 > Para: Cecilia Carmo > Cc: r-help@r-project.org > Assunto: Re: [R] subset in dataframes > > Hi, > > On Sun, Oct 2, 2011 at 7:48 AM, Cecilia Carmo wrote: >> I need help in subseting a dataframe: >> >> >> >> data1<-data.frame(year=c(

Re: [R] subset in dataframes

2011-10-02 Thread Sarah Goslee
Cecilia Carmo > Cc: r-help@r-project.org > Assunto: Re: [R] subset in dataframes > > Hi, > > On Sun, Oct 2, 2011 at 7:48 AM, Cecilia Carmo wrote: >> I need help in subseting a dataframe: >> >> >> >> data1<-data.frame(year=c(

Re: [R] subset in dataframes

2011-10-02 Thread Cecilia Carmo
il.com] Enviada: domingo, 2 de Outubro de 2011 13:01 Para: Cecilia Carmo Cc: r-help@r-project.org Assunto: Re: [R] subset in dataframes Hi, On Sun, Oct 2, 2011 at 7:48 AM, Cecilia Carmo wrote: > I need help in subseting a dataframe: > > > > dat

Re: [R] subset in dataframes

2011-10-02 Thread Sarah Goslee
Hi, On Sun, Oct 2, 2011 at 7:48 AM, Cecilia Carmo wrote: > I need help in subseting a dataframe: > > > > data1<-data.frame(year=c(2001,2002,2003,2004,2001,2002,2003,2004, > > 2001,2002,2003,2004,2001,2002,2003,2004), > > firm=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4),x=c(11,22,-32,25,-26,47,85,98, > > 1

[R] subset in dataframes

2011-10-02 Thread Cecilia Carmo
I need help in subseting a dataframe: data1<-data.frame(year=c(2001,2002,2003,2004,2001,2002,2003,2004, 2001,2002,2003,2004,2001,2002,2003,2004), firm=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4),x=c(11,22,-32,25,-26,47,85,98, 101,14,87,56,12,43,67,54), y=c(110,220,302,250,260,470,850,980,1010,140,87