Hi,
I am still struggling with the data structures in R. I
know how it works in C++ but how can I get such a
structure in R?
Here is what I want:
x[a]$dataframe1
x[a]$dataframe2
x[a]$dataframe3
x[b]$dataframe1
x[b]$dataframe2
x[b]$dataframe3
x[c]$dataframe1
x[c]$dataframe2
x[c]$dataframe3
And
Is this what you want:
DF1 - DF2 - DF3 - df1 - df2 - df3 - head(iris)
list(a = list(DF1, DF2, DF3), b = list(df1, df2, df3))
or
x - list()
x$a - list(DF1, DF2, DF3)
x$b - list(df1, df2, df3)
On 8/26/07, Werner Wernersen [EMAIL PROTECTED] wrote:
Hi,
I am still struggling with the data
That gives you a list of data frames. An array is a vector with a dim
attribute to to make it into an array add the appropriate dim attirbute.
If x is the list we created before then:
dim(x) - 2
gives us an array of length 2 each of which has a list of 3 elements
or
dim(x) - 1:2
gives a 1x2