[R] minimum values
John Fox
jfox at mcmaster.ca
Sat Mar 20 18:02:21 CET 2004
Dear Rogerio,
If the distances is the distance matrix, apply(distances, 1, min) should
give you what you want.
I hope this helps,
John
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
> Rogério Rosa da Silva
> Sent: Saturday, March 20, 2004 7:10 AM
> To: R-help at stat.math.ethz.ch
> Subject: [R] minimum values
>
> Hi,
>
> In my data set I have created a matrix of distances. How can
> I get a list of minimum value in each row?
>
> thanks a lot,
>
> Rogério
More information about the R-help
mailing list