title: area under precision-recall curve in R or matlab
body: <p>I have the predicted scores for a list of binary targets. What would be the best way to calculate the area under precision-recall curve using R or matlab? </p>
  
  <p>I did some search on this and didn't find any relavant function/library to achieve this task. It seems odd because this should be a fairly common thing that people do. Not sure if I missed anything. Any help would be appreciated.</p>