79454458

Date: 2025-02-20 12:17:31
Score: 0.5
Natty:
Report link

What about just prop = 1/3 with slice_sample?

> df %>%
+     slice_sample(prop = 1 / 3, by = Story)
   Story
1      C
2      C
3      X
4      X
5      X
6      A
7      A
8      A
9      A
10     A
11     B
12     B
13     B
14     B
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • High reputation (-2):
Posted by: ThomasIsCoding