s-news
[Top] [All Lists]

Summary: Logic Problem

To: <s-news@lists.biostat.wustl.edu>
Subject: Summary: Logic Problem
From: "Lambert.Winnie" <lambert.winifred@ensco.com>
Date: Mon, 18 Feb 2002 12:07:23 -0500
Thread-index: AcG4nrtplS8JMygNRU6fTdSdQSOTeA==
Thread-topic: Summary: Logic Problem
It was easier than I thought.  Must be Monday.  I had some lunch, got some 
nutrition in my brain and figured out:

good <- !(df$Year %%4 != 0 & df$Day == 29)

Thanks to Bert Gunter and James Holtman for quick replies.  Here are their 
solutions:

> bad <- frame$year %% 4 != 0 &frame$month=='February' & frame$day >28 
> (B.G.)

> good <- ((x.1$year %% 4) == 0) | x.1$day <= 28 (J.H.)

Sorry for the intrusion and my ignorance...

w


***********************************************************************
Winifred C. Lambert                Senior Scientist/Meteorologist
ENSCO, Inc.
Aerospace Sciences and Engineering Division
1980 N. Atlantic Ave, Suite 230
Cocoa Beach, FL  32931
VOICE: 321.853.8130  FAX: 321.853.8415
lambert.winifred@ensco.com

AMU Quarterly Reports are available online:
http://science.ksc.nasa.gov/amu/home.html
***********************************************************************

<Prev in Thread] Current Thread [Next in Thread>
  • Summary: Logic Problem, Lambert.Winnie <=