Why does the order of functions within summarise() affect its output?
When I use two functions within dplyr::summarise()
, the ordering of the functions affects the output. While this post shows this can happen when the first function affects the columns the second function operates on (suggesting each function is processed sequentially), this isn’t the case in my example.