Great, thanks, Olivia. I had forgotten that command. And I hadn't
realized the Zelig manual got into basic [R] stuff so much. I'll be
able to finish it just fine.
Andy
On Tue, 28 Sep 2004 17:54:49 -0400, Olivia Lau <olau(a)fas.harvard.edu> wrote:
Andy,
Gary discussed this in class on Monday. Look at the code dealing with the
Monte Hall problem, specifically the line that says:
doorsLeft <- doors[doors != choice]
Part of the assignment is figuring out how R works (which is why the
assignment is pretty easy mathematically), so...you should look at Zelig
chapters 2-3, or more specifically p. 24. If you want to drop stuff, you
use the same commands, but on the LHS of the arrow. On the RHS of the arrow
is the new variable name. (As it is above.)
Yours,
Olivia
----- Original Message -----
From: "Andrew Eggers" <aeggers(a)gmail.com>
To: "Olivia Lau" <olau(a)fas.harvard.edu>
Sent: Tuesday, September 28, 2004 5:45 PM
Subject: R question
O,
I am tired of sifting through R manuals for this -- can you give me a
few command hints?
1. how can I drop members of an object, given a logical condition (e.g.
Y<2)?
2. how can I make operators work on an object containing missing
values, and not themselves produce missing values?
Thanks,
Andy
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l