I have got a data.frame and I need to create 1000 random samples, each one containing 30 observations.
Here an example of my data.frame:
df = read.table(text = 'ID Letter
10 R', header = TRUE)
You can use
sample along with
replicate to create 100 samples of length 30 with replacement. You do not need the boot package. Following your answer, you can just use
simplify = FALSE to prevent coercing into an array.
replicate(100,sample(df$Letter, 30, replace =TRUE), simplify = FALSE)
The result will be a list.