RE: [R] row selection based on median in data frame

2004-04-01 Thread Nick.Ellis
61 (07) 3826 7260 Cleveland QLD 4163 fax +61 (07) 3826 7222 Australia http://www.marine.csiro.au > > > -- > > Message: 75 > Date: Wed, 31 Mar 2004 22:22:22 -0500 > From: Ed L Cashin <[EMAIL PROTECTED]> > Subj

Re: [R] row selection based on median in data frame

2004-04-01 Thread Ed L Cashin
Ed L Cashin <[EMAIL PROTECTED]> writes: ... > Is there a way to tell aggregate just do perform median on column runtime to > select the whole row? Some helpful folks have emailed me requesting more info about what I'm trying to do. Here's a simple R function to produce a data frame like the on

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin <[EMAIL PROTECTED]> writes: > Ed L Cashin <[EMAIL PROTECTED]> writes: > >> Hi. I am having trouble thinking of an easy way to grab rows out of a >> data frame. I want to select the rows with a median value when the >> rows are similar. > > I'm still catching up on my R list reading,

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin <[EMAIL PROTECTED]> writes: > Hi. I am having trouble thinking of an easy way to grab rows out of a > data frame. I want to select the rows with a median value when the > rows are similar. I'm still catching up on my R list reading, and I notice there is a similar post to mine:

[R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Hi. I am having trouble thinking of an easy way to grab rows out of a data frame. I want to select the rows with a median value when the rows are similar. A simple example is this table, which I could read into a data frame. I would like to find a new data frame with only the rows with a median