Replicate same data.frame n times and save them into a list
dataframe, list, r, replicate
Solution
With `lapply`:
df_list <- lapply(1:100, function(x) df)
Problem
I just need to replicate my data.frame n times (e.g. 100) and save all the outputs into a list. It should be quite easy and straightforward but I could not find any solution yet. Fake data.frame: ``` df = read.table(text = 'a b 1 2 5 6 4 4 11 78 23 99', header = TRUE) ```