Skip to content

drop observations

4 messages · Charlène Cosandier, David Winsemius, DrorD

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

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

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

David Winsemius, MD
West Hartford, CT
#
On Dec 30, 2010, at 5:53 PM, David Winsemius wrote:

            
And on second look I wonder if my translation from English to Boolean  
was correct. If you wanted to excluded any case with c01 == 0 or  
ctotal==0 then the code was correct, but if you wanted to exclude only  
case where both were zero, the code would be incorrect and the logical  
operator should be changed to "&".
David Winsemius, MD
West Hartford, CT