Re: [R] read data into list of matrix

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 14 Apr 2008 16:41:12 -0300

Try this:

fp <- lapply(files, read.table, header = T)

On Mon, Apr 14, 2008 at 4:21 PM, Jonas Stein <news_at_jonasstein.de> wrote:

> Hi
>
> 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
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[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.

Received on Mon 14 Apr 2008 - 19:46:05 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 Tue 15 Apr 2008 - 01:30:29 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