You need seet the FUN argument:
X - with( FDP0D, ave( IAC, list( Key), FUN = mean))
On 5/1/08, Chip Barnaby [EMAIL PROTECTED] wrote:
Henrique, thanks for the response. As a new
user, I was unaware of with() and ave(), those are both very helpful.
However, I don't think your method is quite
Henrique, thanks for the response. As a new
user, I was unaware of with() and ave(), those are both very helpful.
However, I don't think your method is quite
right. I for all rows in each Key, I want the mean( IAC) where ProfA = 0.
To simplify the problem, I have made a subset
dataframe
Dear all --
I have a data frame containing data related to heat gain through
windows. The general form is ...
Key ProfAIAC many other numeric columns
AAA0.7
AAA 10.6
AAA0 .66
AAA 20 .45
(more AAA rows)
(then AAB rows)
'Key' identifies the
If I understand your question:
x$IAC0 - with(x, ave(IAC, list(ProfA, Key), FUN = mean))
On Wed, Apr 30, 2008 at 3:52 PM, Chip Barnaby [EMAIL PROTECTED]
wrote:
Dear all --
I have a data frame containing data related to heat gain through windows.
The general form is ...
Key ProfAIAC
4 matches
Mail list logo