Re: [R] multiply for vector in R

2007-10-24 Thread ecatchpole
Guolian Kang wrote on 10/24/2007 01:37 PM: > Dear All, > > Is there a conmand to calculate the multiplication of the elements in a > vector? For example: > > a=c(1,2,3,4) > I want to get 1*2*3*4=24. > Because the dimension of the vector is high, I want to know there is a > command for this task

Re: [R] multiply for vector in R

2007-10-24 Thread Ingmar Visser
?prod On 24 Oct 2007, at 05:37, Guolian Kang wrote: > Dear All, > > Is there a conmand to calculate the multiplication of the elements > in a vector? For example: > > a=c(1,2,3,4) > I want to get 1*2*3*4=24. > Because the dimension of the vector is high, I want to know there > is a command fo

Re: [R] multiply for vector in R

2007-10-24 Thread Dimitris Rizopoulos
://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: "Guolian Kang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2007 5:37 AM Subject: [R] multiply for vector in R > Dear All, > > Is t

[R] multiply for vector in R

2007-10-24 Thread Guolian Kang
Dear All, Is there a conmand to calculate the multiplication of the elements in a vector? For example: a=c(1,2,3,4) I want to get 1*2*3*4=24. Because the dimension of the vector is high, I want to know there is a command for this task in R? Thank you so much! Kang __