| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | match |
| From: | "Manoel Pacheco" <mpacheco@glec.com> |
| Date: | Tue, 27 Mar 2007 10:06:26 -0500 |
| Organization: | GLEC |
I have a list of integers,
dat <- c(12, 1, 7, 10, 1, 10, 8, 5, 14, 7, 1, 1, 1, 76, 15, 78)
I can easily exclude ones
n <- dat[dat > 1]
to use the vector n in a function. The problem I am facing is to match the
function output to the original sequence of values in my list list. I tried
match(n, dat, nomatch = 0)
but the output is all zeroes. Perhaps I can use a vector of the positions
where dat=1. I would appreciate help to solve this simple problem.
Thanks,
Manolo
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Graphlet question, filloon . tg |
|---|---|
| Next by Date: | Re: match, Sundar Dorai-Raj |
| Previous by Thread: | Graphlet question, filloon . tg |
| Next by Thread: | Re: match, Sundar Dorai-Raj |
| Indexes: | [Date] [Thread] [Top] [All Lists] |