Skip to content
Back to formatted view

Raw Message

Message-ID: <59E8767A-89A9-4BBD-9363-315CAD2148AA@me.com>
Date: 2011-05-17T20:09:29Z
From: Marc Schwartz
Subject: Summarize by two or more attributes
In-Reply-To: <506F591A54F21D4480EE337F77369C054214DD22@LCEXG03.lc100.net>

On May 17, 2011, at 2:55 PM, ROLL Josh F wrote:

> Marc, 
>  How could I also apply the spline function to each of the 'columns' found in the result   from 
> 
> tapply(Df$Rate,list(Df$Bin,Df$Type),sum)
> 
> ??


Something along the lines of the following:

  apply(tapply(Df$Rate,list(Df$Bin,Df$Type),sum), 2, spline)


If I am understanding what you want to do. 

Depending upon what you are trying to do, you may want to look at the other functions listed in the See Also in ?spline.

HTH,

Marc