I found how to initialize an empty data frame with 3 or 4 dimensions. It\'s like
df <- data.frame(Date=as.Date(character()), File=character(
Maybe this -
df <- data.frame(matrix(ncol = 10000, nrow = 0)) colnames(df) <- paste0("hello", c(1:10000))
And @joran's suggestion - df <- setNames(data.frame(matrix(ncol = 10000, nrow = 0)),paste0("hello", c(1:10000)))
df <- setNames(data.frame(matrix(ncol = 10000, nrow = 0)),paste0("hello", c(1:10000)))