Skip to content
Prev 260099 / 398502 Next

Minimum value by ID

Perfect. Thank you.

-Mitch


-----Original Message-----
From: Dimitris Rizopoulos [mailto:d.rizopoulos at erasmusmc.nl] 
Sent: Tuesday, May 17, 2011 9:51 AM
To: Downey, Patrick
Cc: r-help at r-project.org
Subject: Re: [R] Minimum value by ID

have a look at help file of function tapply(), and try this:

with(dat, tapply(x, id.var, min))


I hope it helps.

Best,
Dimitris
On 5/17/2011 3:44 PM, Downey, Patrick wrote:
dataset.
--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center

Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014
Web: http://www.erasmusmc.nl/biostatistiek/