Try this:

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

On Mon, Apr 14, 2008 at 4:21 PM, Jonas Stein <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
>
> ______________________________________________
> R-help@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@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.

Reply via email to