| To: | peter@archfunds.com |
|---|---|
| Subject: | Re: Exclude rows. from a dataframe |
| From: | Sundar Dorai-Raj <sundar.dorai-raj@pdf.com> |
| Date: | Thu, 30 Jun 2005 10:13:29 -0500 |
| Cc: | s-news@lists.biostat.wustl.edu |
| In-reply-to: | <3BBA56F84C6152428A18B2770F778930047E36C1@THHS2EXBE1X.hostedservice2.net> |
| Organization: | PDF Solutions, Inc. |
| References: | <3BBA56F84C6152428A18B2770F778930047E36C1@THHS2EXBE1X.hostedservice2.net> |
| User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
peter@archfunds.com wrote: Apologies if this is a dumb question, but have been searching and experimenting for a while without success. I have a dataframe with dates and returns in it (2 columns) and want to create a new dataframe with only positive returns in it.Thanks in advancePeter (An example would be nice.) Would the following work for you? # assume `x' is your data.frame # with `return' your column of returns pos.x <- x[x$return > 0, ] HTH, --sundar |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Exclude rows. from a dataframe, peter |
|---|---|
| Next by Date: | Re: Exclude rows. from a dataframe, peter |
| Previous by Thread: | Exclude rows. from a dataframe, peter |
| Next by Thread: | Re: Exclude rows. from a dataframe, peter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |