The column ID is a sequence of 1-63 in repetition. I wish to add two new columns Closepctl and Quantitypctl in which I can rank each entry from 1-63 i.e., on the basis of Close and Quantity column but grouped with respect to ID. Is there any way to do this in R?
I tried it in excel but failed to find any grouping option there. Excel approach is also appreciated.