library(dplyr)
library(dtrackr)
# mutate and other functions are unitary operations that generally change
# the structure but not size of a dataframe. In dtrackr these are by ignored
# by default but we can change that so that their behaviour is obvious.
# arrange
# In this case we sort the data descending and show the first value
# is the same as the maximum value.
iris %>%
track() %>%
arrange(
desc(Petal.Width),
.messages="{.count} items, columns: {.cols}",
.headline="Reordered dataframe:") %>%
history()
Run the code above in your browser using DataLab