[R] data.frame with duplicated id's

Philipp Pagel p.pagel at gsf.de
Wed Sep 24 09:05:08 CEST 2003


	Hi!

> is there a exstisting function (..i found nothing until now.) 
> what makes it possible transfrom a dataset:
> 
> ID AGE V.MAI V.JUNE    
> 11 20   100   120
> 12 30   200   90
> 
> into 
> 
> ID    AGE    V
> 11    20       100 
> 11    20       120
> 12    30        200
> 12    30        90

I think reshape() will do what you want.

cu
	Philipp

-- 
Dr. Philipp Pagel                                Tel.  +49-89-3187-3675
Institute for Bioinformatics / MIPS              Fax.  +49-89-3187-3585
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1
85764 Neuherberg, Germany




More information about the R-help mailing list