`gather``mutate``arrange`
df %>%
rowid_to_column() %>%
gather(col, value, -treatment, -total, -rowid) %>%
mutate(value = value/total) %>%
arrange(rowid) %>% select(-rowid, -total)
`gather``mutate``arrange`
df %>%
rowid_to_column() %>%
gather(col, value, -treatment, -total, -rowid) %>%
mutate(value = value/total) %>%
arrange(rowid) %>% select(-rowid, -total)