Tag: calculate rank by multiple criteria in R