Skip to content
Back to formatted view

Raw Message

Message-ID: <23479525-F260-4A9E-A801-D2AE761C2A9B@comcast.net>
Date: 2010-12-03T16:30:49Z
From: David Winsemius
Subject: subset of a dataframe
In-Reply-To: <1291393584075-3071326.post@n4.nabble.com>

On Dec 3, 2010, at 11:26 AM, alcesgabbo 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:
>

?subset

> (for type = t1)
>
> name    type
> A          t1
> C          t1
> D           t1
>
> (for type = t2)
>
> name    type
>
> B           t2
> F            t2
>
>
> Thanks
> -- 


David Winsemius, MD
West Hartford, CT