Re: [R] Summarize by two or more attributes

From: Marc Schwartz <>
Date: Tue, 17 May 2011 15:09:29 -0500

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 mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 May 2011 - 20:12:02 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 May 2011 - 21:30:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive