Skip to content
Back to formatted view

Raw Message

Message-ID: <122EE0C2-43FC-4AB3-88C0-E4E389F5640E@comcast.net>
Date: 2010-12-30T22:53:01Z
From: David Winsemius
Subject: drop observations
In-Reply-To: <AANLkTi=QyugSx4-aisZrdNGvoV5xEbaNevch0VMzzH2b@mail.gmail.com>

On Dec 30, 2010, at 4:54 PM, Charl?ne Cosandier wrote:

> Hi,
>
> I want to drop observations with value 0 from my data.frame "dta"  
> for each
> of the two variables "c01" and "ctotale". How can I do that?
>
> Thanks
>
>

subset(dta, !( c01==0 | ctotale==0) )

... remembering of course to assign this result to some appropriately  
named object.


> Charl?ne Lisa Cosandier
>
> 	[[alternative HTML version deleted]]
--

David Winsemius, MD
West Hartford, CT