SyntaxFix
Write A Post
Hire A Developer
Questions
You could do this:
sample_data = data[sample(nrow(data), sample_size, replace = FALSE), ]