Skip to content

Declare a set (list?) of many dataframes or matrices

2 messages · John, Rui Barradas

#
Hello,

I can't say I understand the question, but if you want a list of empty 
dfs and a list of empty matrices, the following will do.

replicate(10, data.frame())
replicate(10, matrix(NA, nrow = 0, ncol = 0))


Hope this helps,

Rui Barradas

Em 03-05-2013 16:20, jpm miao escreveu: