Re: [R] Table rearranging

2012-02-10 Thread David Winsemius
d blue 8 8 0.8945757 1230 open blue (You could have used Dunlap's resutl and tested for both the meanOpen and meanClosed values being not-is.na.) -- David Jeffrey CC: r-help@r-project.org From: dwinsem...@comcast.net To: johjeff...@hotmail.

Re: [R] Table rearranging

2012-02-10 Thread Jeffrey Joh
Hi David, Totally forgot line 3!  So "513 red" should be ok but "420 red" and "917 yellow" aren't. Jeffrey > CC: r-help@r-project.org > From: dwinsem...@comcast.net > To: johjeff...@hotmail.com > Subjec

Re: [R] Table rearranging

2012-02-07 Thread David Winsemius
co.com From: dwinsem...@comcast.net To: johjeff...@hotmail.com Subject: Re: [R] Table rearranging Date: Tue, 7 Feb 2012 09:08:00 -0500 On Feb 7, 2012, at 4:21 AM, Jeffrey Joh wrote: Thank you for your help, Bill. From the original table (not the plyr output), I would like to remove all the line

Re: [R] Table rearranging

2012-02-07 Thread Jeffrey Joh
red" condition has an open measurement, but no closed measurement.  Therefore, line 1 should be deleted. Jeffrey > CC: r-help@r-project.org; wdun...@tibco.com > From: dwinsem...@comcast.net > To: johjeff...@hotmail.com > Subject: Re: [R]

Re: [R] Table rearranging

2012-02-07 Thread David Winsemius
ize, meanClosed=mean(measurement[door=="closed"]), nClosed=sum(door=="closed")) -- David Jeffrey From: wdun...@tibco.com To: johjeff...@hotmail.com; r-help@r-project.org Subject: RE: [R] Table rearranging Date: Tue, 7 Feb 2012 00:43:

Re: [R] Table rearranging

2012-02-07 Thread Jeffrey Joh
nt, then the Closed yellow should be deleted. How can I make this change? Jeffrey > From: wdun...@tibco.com > To: johjeff...@hotmail.com; r-help@r-project.org > Subject: RE: [R] Table rearranging > Date: Tue, 7 Feb 2012 00:43:25 + &

Re: [R] Table rearranging

2012-02-06 Thread William Dunlap
0 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Jeffrey Joh > Sent: Monday, February 06, 2012 4:28 PM > To: r-help@r-project.org > Sub

[R] Table rearranging

2012-02-06 Thread Jeffrey Joh
I have a table that looks like this: measurement    date    door    color 0.93529385    513    open    red 0.97419293    420    open    red 0.962053514    513    closed    red 0.963909937    1230    open    blue 0.97652034    1230    open    green 0.989310795    1230    closed    blue 0.9941022