slice_min() and slice_max() select rows with highest or lowest values of a variable.If needed, you can weight the sample with the weight argument. Use replace = TRUE to perform a bootstrap sample. Starwars %>% slice_sample( n = 5) #> # A tibble: 5 x 14 #> name height mass hair_color skin_color eye_color birth_year sex gender #> #> 1 Dud B... 94 45 none blue, grey yellow NA male mascu... #> 2 Bossk 190 113 none green red 53 male mascu... #> 3 Shaak... 178 57 none red, blue, ... black NA female femin... #> 4 Dormé 165 NA brown light brown NA female femin... #> # ... with 1 more row, and 5 more variables: homeworld, species, #> # films, vehicles, starships starwars %>% slice_sample( prop = 0.1) #> # A tibble: 8 x 14 #> name height mass hair_color skin_color eye_color birth_year sex gender #> #> 1 Qui-Gon... 193 89 brown fair blue 92 male mascu... #> 2 Dexter ... 198 102 none brown yellow NA male mascu... #> 3 R4-P17 96 NA none silver, red red, blue NA none femin... #> 4 Lama Su 229 88 none grey black NA male mascu... #> # ... with 4 more rows, and 5 more variables: homeworld, species, #> # films, vehicles, starships