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

______________________________________________
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