ors.
> Thank you
> Chris Kelvin
>
>
> - Original Message -
> From: R. Michael Weylandt
> To: Christopher Kelvin
> Cc: "r-help@r-project.org"
> Sent: Thursday, March 29, 2012 11:33 PM
> Subject: Re: [R] matrix with Loop
>
> apply(x, 1, mean)
> app
apply(x, 1, mean)
apply(x, 2, median)
or for more speed rowMeans()
? apply
Michael
On Thu, Mar 29, 2012 at 9:00 AM, Christopher Kelvin
wrote:
> Hello!
> I got something to ask..whether you can help me with the R program...i got
> this for example 5x4 matrix..and i want to find:
> i) mean for
Hello!
I got something to ask..whether you can help me with the R program...i got this
for example 5x4 matrix..and i want to find:
i) mean for each row of the matrix
ii) median for each column of the matrix
and i need to do this using a loop function...below is my program..u try to
check it for
3 matches
Mail list logo