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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Rogério Rosa da Silva
> Sent: Saturday, March 20, 2004 7:10 AM
> To: [EMAIL PROTECTED]
> 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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to