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

arun smartpink111 at yahoo.com
Fri May 3 18:42:20 CEST 2013





Hi,
I am not sure about what you meant.
lapply(1:5,function(i) data.frame())
[[1]]
data frame with 0 columns and 0 rows

[[2]]
data frame with 0 columns and 0 rows

[[3]]
data frame with 0 columns and 0 rows

[[4]]
data frame with 0 columns and 0 rows

[[5]]
data frame with 0 columns and 0 rows

A.K.


----- Original Message -----
From: jpm miao <miaojpm at gmail.com>
To: r-help <r-help at r-project.org>
Cc: 
Sent: Friday, May 3, 2013 11:20 AM
Subject: [R] Declare a set (list?) of many dataframes or matrices

Hi,

   I would like to read several datasets and would like to create a set
(list? sequence?) of many empty dataframes. How could this be done? How
could I declare a  set (list? sequence?) of many empty matrices?

   Thanks,

Miao

    [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list