| To: | "Leeds, Mark" <mleeds@mlp.com>, s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: another vector question |
| From: | "Richard M. Heiberger" <rmh@temple.edu> |
| Date: | Fri, 10 Jun 2005 16:30:32 -0400 |
| Cc: | cspark@clemson.edu |
> x <- sample(12) > x [1] 10 5 3 1 9 11 8 2 12 6 4 7 > which(x>9) [1] 1 6 9 > ii <- 5:7 > ii [1] 5 6 7 > which(x[ii] > 9) [1] 2 > jj <- which(x > 9) > jj [1] 1 6 9 > ii[which(x[ii] > 9)] [1] 6 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | another vector question, Leeds, Mark |
|---|---|
| Next by Date: | A subset question, Bert Jacobs |
| Previous by Thread: | another vector question, Leeds, Mark |
| Next by Thread: | A subset question, Bert Jacobs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |