| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Compare two vectors without a loop |
| From: | yiwu ye <yiwu21111958@yahoo.com> |
| Date: | Thu, 26 Jun 2003 19:21:21 -0700 (PDT) |
|
Dear list members,
suppose I have:
x y
1 3
2 4
3 5
4 6
5 6
I want to make a comparison between x and y, and to produce a new vector like
z
T
T
T
F
F
so, I can know the first three elements of y, 3,4,5,can find the same value in x.
Could someone told how I can do it without a loop, please? Many thanks.
Yiwu Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: lme question (again), Jake Bowers |
|---|---|
| Next by Date: | Cov.mcd running low on R, José Lozano Alonso |
| Previous by Thread: | lme question (again), Kyle Roberts |
| Next by Thread: | Re: Compare two vectors without a loop, Sundar Dorai-Raj |
| Indexes: | [Date] [Thread] [Top] [All Lists] |