I'm trying to use sample_n to randomly select some rows from a dataframe, but want these to be reproducible (at least for now), so I'm using set.seed, but I can't get reproducible selections from my dataframe or something simpler like a vector using sample. Am I missing something? I know there was recent changes in v3.6.0 to how sampling works but FWIW I'm on v3.5.2
set.seed(1)
x <- 1:10
sample(x, 1)
#> [1] 3
sample(x, 1)
#> [1] 4
Created on 2019-05-31 by the reprex package (v0.2.1)