| To: | "Overstreet, Jason (FL51)" <Jason.Overstreet@honeywell.com>, <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Re: Sub setting data |
| From: | "Stewart, William" <william.stewart@rbc.com> |
| Date: | Fri, 16 Sep 2005 16:43:37 -0400 |
| Thread-index: | AcW6/RU5Hb9bNwF9S0imX7o092Oi+AAAgN2Q |
| Thread-topic: | [S] Sub setting data |
|
Jason,
The following should do what you
want:
test.df1 <- data.frame(key=c(1:10),
data="">test.df2 <-
data.frame(to.get=c(2,4,6,8,10))
test.df1[test.df2$to.get,]
-------------------------
__________________________________________________________________________________________________________________________________ This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Sub setting data, Rolf Turner |
|---|---|
| Next by Date: | CFP/CFW/CFT Sixth SIAM International Conference on Data Mining, Ian Davidson |
| Previous by Thread: | Re: Sub setting data, Rolf Turner |
| Next by Thread: | CFP/CFW/CFT Sixth SIAM International Conference on Data Mining, Ian Davidson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |