[R] Multidimensional List access

From: Ingo Reinhold <ingor_at_kth.se>
Date: Wed, 18 May 2011 10:14:05 +0000


Dear all,

I have data organized in a way like this

Data[[CharacteristicsList1]][[CharacteristicsList2]][[CharacteristicsList3]][[CharacteristicsList4]]

where CharacteristicsList4 there is a DF stored with various columns of name V1,V2, ... , Vn

Is there an easy way to get a vector of all the values in, lets say V3, in all CharacteristicsLists without the need for FOR-loops?

I figured there could be something like

Data[[:]][[:]][[:]][[:]][[V3]]

Many thanks,

Ingo

        [[alternative HTML version deleted]]



R-help_at_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. Received on Wed 18 May 2011 - 12:29:15 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 May 2011 - 12:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive