[R] A vector or array of data frames
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Feb 17 14:23:04 CET 2005
michael watson (IAH-C) wrote:
> Hi
>
> A simple question again, but I can't find it by google-ing R-help.
>
> Quite simply, I want to read in the contents of a number of files, using
> read.table, and assign the results to elements of a
> vector/array/list/whatever.
>
> I want it so that, if my vector/array/whatever is "pos", that pos[1]
> will give me the first data frame, pos[2] will give me the second etc...
For sure you will find a solution! This has been answered several times.
You can have a list "pos" (where pos is a bad time which suggest to have
something in common with environments) so that pos[[1]] is your first
data frame etc. See ?list
Uwe Ligges
> Kind of basic stuff I know... Sorry..
>
> Mick
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list