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
?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
://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
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
__
4 matches
Mail list logo