Projects Directory : create a R function - Create a ranking function