[R] What is the equivalent of column.prods() from S in R?

Peng Yu pengyu.ut at gmail.com
Sun Nov 29 05:28:52 CET 2009


On Mon, Nov 9, 2009 at 8:35 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Nov 9, 2009, at 8:43 PM, Peng Yu wrote:
>
>> Chambers' book Statistical Models in S mentioned 'column.prods()'. But
>> I don't find it in R. I'm wondering if there is an equivalent in R?
>
> ??rowProds
> ??colProds
>
> (They are in both fUtilities and timeSeries.)

Are you sure that colProds() is equivalent to column.prods()? It seems
that column.prods() should be a very basic function in S, but I have
to load a package in order to call colProds().

I don't see how to construct a matrix give terms as mentioned in the
book. Would you please give me some examples?




More information about the R-help mailing list