> In golf, lower scores place higher – the lowest score places first and the highest score places last.
Write a function that:
• takes a right argument that is a non-decreasing vector or scalar of strictly positive integers, representing a set of scores.
• returns a numeric vector of the place for each score; for duplicate scores, it returns the average of the places they hold.