I will take a look.  In my real data I need to interpolate the 16 points into 
64 points for each of the categories.  

Thanks Marc

JR 

-----Original Message-----
From: Marc Schwartz [mailto:marc_schwa...@me.com] 
Sent: Tuesday, May 17, 2011 1:09 PM
To: ROLL Josh F
Cc: r-help@r-project.org
Subject: Re: [R] Summarize by two or more attributes

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 

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to