For example, I want to calculate perentile for this columns :
list_of_col <- total[ -c(2:8,16:21) ]
I know how I can calculate the percentile on one column (the B is the column by which it groups, for example B have index 1, and A is the column from list_of_col):
total<- total %>%
group_by(B) %>%
mutate(A = rank(A)/length(A))
I'm looking something like this, but I don't know what to put in place of X
total<- total %>%
group_by(B) %>%
mutate_at(list_of_col, X )