I have a dataframe below:
Data<- c("Chelsea", "Arsenal", "Liverpool", "Brighton", "Fulham", "Tottenham", "Newcastle", "Mancity", "Southampton", "Wolverhampton",
"Chelsea", "Arsenal", "Liverpool", "Brighton", "Fulham", "Tottenham", "Mancity", "Chelsea", "Arsenal", "Mancity", "Liverpool", "Brighton", "Mancity",
"Arsenal", "Liverpool", "Mancity", "Chelsea")
I want to order the column alphabetically and then create a new group starting from 1, so the output will look like this:
