A user wants to know in what way he can randomly select a number of rows without replacement from a dataframe in R.
Let us create a dataframe data = data.frame(matrix(rnorm(20), nrow=10)) Data Now to randomly select 3 rows, we can do the following da
1 Answer · 1.5K Views · Answered ✓