<br><font size=2 face="sans-serif">Please forgive the relative lack of sophistication here -- I'm trying to learn R, remove the rust from my basic training in statistics, AND produce a useful result.</font>
<br>
<br><font size=2 face="sans-serif">I have two vectors of equal length, &nbsp;A and B, with a one-to-one correspondence between the elements (ie. A[i] corresponds to B[i]) which are provided by an SQL server upon which I can run any SQL statement.</font>
<br>
<br><font size=2 face="sans-serif">I would like to partition A (like breaks in a histogram) into some number of equal-size partitions, and then calculate and plot the mean value of the B's that correspond to the A's in each partition (or, more generally, produce some descriptive statistics for each set of B's, and potentially try to draw some inferences about the B's in each partition).</font>
<br>
<br><font size=2 face="sans-serif">I can imagine how to do this in Perl by writing a loop, but I suspect there may be a more natural way to do it in R, and would be grateful for any suggestions.</font>
<br>
<br><font size=2 face="sans-serif">Thanks.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br>
<br><font size=2 face="sans-serif">Mike</font>
<br><font size=2 face="sans-serif"><br>
___________________________________________________<br>
Michael Nielsen<br>
Synergy Plus Pty Ltd<br>
Sydney<br>
Level 5, <br>
18-20 Orion Rd<br>
PO Box 4080, Lane Cove, NSW DC 2066<br>
(Switch: ) +61 2 9425-3000 &nbsp; (Fax: ) +61 2 9418-9477<br>
(Direct: ) +61 2 9425-3007 &nbsp; (Mobile: )0413-208-488<br>
WebSite: &nbsp;www.synergy.com.au<br>
<br>
This email and any attachments are confidential. If you are not the<br>
intended recipient, please inform us as soon as possible and do not<br>
use, disclose, copy or distribute this information.</font>