I am writing a \'rank\' function to manipulate data in a dataframe. To do other manipulations, I need to split it to separate dataframes by \'cluster\' variable.
I di