[R] subset of a dataframe

2010-12-03 Thread alcesgabbo
HI, I have a dataframe like this: nametype A t1 B t2 C t1 D t1 E t3 Ft2 how can I have a sub dataframe based with the column type like this: (for type = t1) nametype A t1 C t1 D t1 (for type = t2)

Re: [R] subset of a dataframe

2010-12-03 Thread Steve Lianoglou
Hi, On Fri, Dec 3, 2010 at 11:26 AM, alcesgabbo alcesga...@hotmail.com wrote: HI, I have a dataframe like this: name    type A          t1 B           t2 C          t1 D           t1 E           t3 F            t2 how can I have a sub dataframe based with the column type like this:

Re: [R] subset of a dataframe

2010-12-03 Thread David Winsemius
On Dec 3, 2010, at 11:26 AM, alcesgabbo wrote: HI, I have a dataframe like this: nametype A t1 B t2 C t1 D t1 E t3 Ft2 how can I have a sub dataframe based with the column type like this: ?subset (for type = t1) name