Hi, I'm relatively new to R, and was wondering the most efficient way to iteratively construct a dataframe (one row at a time, the number of iterations "n" and the length of each row "l" are known beforehand).
- Create empty dataframe, add a row each iteration
- Preallocate n x l dataframe, modify a row each iteration
- Preallocate n x l matrix, modify a row each iteration, make dataframe from matrix
- Something else