?apply
e.g. for the 'min'
apply(yourMatrix, 1, min, na.rm=TRUE)
On Thu, Jan 29, 2009 at 11:58 AM, Will Glass-Husain
wrote:
> Hi,
>
> I'm a new user. I've been reading through the manual and looking at
> various examples but am still trying to make sense of the most
> efficient ways to handle ma
University of Bologna, Italy
via Belle Arti 41, 40124 BO.
Da: Will Glass-Husain
A: r-h...@stat.math.ethz.ch
Inviato: Giovedì 29 gennaio 2009, 17:58:50
Oggetto: [R] Taking the min of each row in a matrix
Hi,
I'm a new user. I've been reading through
Hi,
I'm a new user. I've been reading through the manual and looking at
various examples but am still trying to make sense of the most
efficient ways to handle matrices of data.
If I have a 2D matrix of data, how do I get the mean, min, max value
of each row? I see the "mean" function on a matri
3 matches
Mail list logo