[R] read data into list of matrix

From: Jonas Stein <news_at_jonasstein.de>
Date: Mon, 14 Apr 2008 21:21:40 +0200


i have a list of many files and want to load them into a list of tables, that can be adressed with a variable 'i'.

something like

files = c("0125um","2000um","2200um","2500um","2700um")

for (i in 1:5)
fp[i] <- read.table( files[i] )

but this does not work of course.

Has anyone a good hint?

Thank you,

Jonas Stein <news_at_jonasstein.de>

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 14 Apr 2008 - 19:34:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 20:31:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive