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 ,or have i to programm ths my self? Thanks for any comment, help and/or starting point. regards,christian [[alternative HTML version deleted]]
Try ?reshape A -----Original Message----- From: Christian Schulz [mailto:ozric at web.de] Sent: Wednesday, 24 September 2003 3:42 PM To: r-help at stat.math.ethz.ch Subject: [R] data.frame with duplicated id's 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 ,or have i to programm ths my self? Thanks for any comment, help and/or starting point. regards,christian [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
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 90I 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