[R] Struchture change of a data frame

About this list Date view Thread view Subject view Author view Attachment view

From: Beat Huggler (beat.huggler@rmf.ch)
Date: Thu 16 May 2002 - 01:09:19 EST


Message-id: <3635AAE6EA743844B05655F805CB3125018E51E5@titlis.rmf.ch>


Hi guys

I've got an easy question but couldn't find any quick solution. I woulk
like to change the following matrix

                good bad worse
Blue 1 2 2
Yellow 2 1 3
Black 3 4 4

Into the following structure

good 1 Blue
Bad 2 Blue
Worse 2 Blue
Good 2 Yellow
Bad 1 Yellow
Worse 2 Yellow
Good 2 Black
Bad 4 Black
Worse 4 Black

Thanks a lot.

Regards

Beat Huggler

---
Beat Huggler
Quantitative Analysis
RMF Investment Products
Huobstrasse 16
8808 Pfaeffikon SZ
Switzerland
www.rmf.ch
Tel. +41 55 415 87 30
Fax +41 55 415 87 07

This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:17 EST