I am trying to practice window functions and just want to experiment with this code but my R session aborts when I run this code:
library(dplyr)
mtcars %>%
select(mpg, cyl) %>%
mutate(r = min_rank())
If these functions behave differently depending if context is a df or vector how should we know what they do? All the examples are for vectors... E.g. row_number()behaves differently on a data frame compared to a vector.