Is there a quick way to initialize an empty data frame? If you know what the dimensions will be? For example:
Suppose I would like a blank data frame that has 100 rows and 10:
x <- data.frame(1:100,2,3,4,5,6,7,8,9,10)
dim(x) ## that's right
But suppose I want something like 300 columns? How do I quickly initialize columns in a data.frame?
x <- data.frame(1:100,2,3,4,5 ....) ## *cries*