Sorting elements in a data.frame
On Wed, 23 Jun 2004, Liaw, Andy wrote:
Do you mean:
pmax(x[,1], x[,2]) / pmin(x[,1], x[,2])
Magic! I needed a p!
Andy
From: Dan Bolser Hi, I have data like this.... print(x) ID VAL1 VAL2 1 2 6 2 4 9 3 45 12 4 99 44 What I would like is data like this... ID VAL1 VAL2 1 2 6 2 4 9 3 12 45 4 44 99 So that my analysis of the ratio VAL2/VAL1 is somehow uniform. Any advice is welcome! Dan.
------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------