I have a tibble like so:
tibble(a = c(1,2,3,4,5), b = c(1,1,1,2,2))
I want to randomly downsample the data by the "b" column, like so:
tibble(a = c(1,3,4,5), b = c(1,1,2,2))
How can I do this entirely in a Dplyr pipeline without changing the data type of the tibble?