[R] How to get a specific named element in a nested list
Friedericksen Hope
friedericksen.hope at gmail.com
Thu Nov 11 09:05:01 CET 2010
Hello,
I have a nested named list structure, like the following:
x <- list(
list(
list(df1,df2)
list(df3,
list(df4,df5))
list(df6,df7)))
with df1...d7 as data frames. Every data frame is named.
Is there a way to get a specific named element in x?
so, for example,
x[[c("df5")]] gives me the data frame 5?
Thank you in advance!
Best,
Friedericksen
More information about the R-help
mailing list