<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Times New Roman">Dear All,</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Further to answers to sorting, can someone tell me how can I sort a list that contains duplicates (name) but keeping the duplicates together when sorting the values. </FONT></P>

<P><FONT SIZE=2 FACE="Times New Roman">e.g., a data frame with name (in duplicates), Mvalues(may be different for the duplicates)</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">name&nbsp;&nbsp;&nbsp; M</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">1234&nbsp;&nbsp;&nbsp; 8</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">1234&nbsp;&nbsp;&nbsp; 8.3</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">4321&nbsp;&nbsp;&nbsp; 9</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">4321&nbsp;&nbsp;&nbsp; 8.1</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">If I sort by M, it will be 1234, 4321, 1234, 4321 but I want to keep the duplicates together, so that it will give me 1234, 1234, 4321, 4321. I also would like to set a cut-off, so that anything below a certain values will not be sorted. Any help will be appreciated.</FONT></P>

<P><FONT SIZE=2 FACE="Times New Roman">On another subject, I have downloaded and installed R1.1 for NT, it seems to run fine but when I source codes that I have written for R1.0.1 for printing labels to my data points, instead of printing name as label, it printed some number that I have no idea what it represents, it is not the row number or anything else. The code I used is </FONT></P>

<P><FONT SIZE=2 FACE="Times New Roman">plot(x,y, main=&quot;&quot;, xlab=&quot;x&quot;, ylab=&quot;y&quot;, type=&quot;n&quot;, ylim=c(-4,4), xlim=c(7,16))</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">points(x[d1], y[d1], pch=1,col=c(1:256))</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">points(x[d2], y[d2], pch=1,col=c(1:256))</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">up&lt;-(abs(y)&gt;=2)</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">if (sum(up)!=0) {</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">text(x[up],y[up], col=&quot;black&quot;,labels=name[up], cex=0.2, adj=1)}</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">What is wrong? it ran fine in R1.0.1 and it is working fine in R1.1.0 but just not taking this text command right. Any suggestion will be appreciated.</FONT></P>

<P><FONT SIZE=1 FACE="Times New Roman">Best regards,</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Chuang Fong Kong, Ph D</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Head, Microarrays</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Peter MacCallum Cancer Institute - Research</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">St. Andrew's Place, East Melbourne</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Victoria 3002, Australia</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Tel: 61 3 9656-1796 or 1138</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Fax: 61 3 9656-1411</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">e-mail: c.kong@pmci.unimelb.edu.au</FONT>
</P>
<BR>

</BODY>
</HTML>