Skip to content

Procuct of a sequence or vector

3 messages · Jannis, jim holtman, Henrique Dallazuanna

#
Dear list,


is there a function in R that returns the product of a vector?

E.g. if the vector is c(1,2,3,4) it should return 1*2*3*4=24


Cheers
Jannis
#
Is this what you want:
[1] 24

        
On Thu, Jan 20, 2011 at 12:18 PM, Jannis <bt_jannis at yahoo.de> wrote: