How to arrange a column/df only if a column takes on a specific value. Consider the following example:
df <- data.frame(a = c(1,1,1,2,2,2),