I have a list 'l' of data frames. These data frames in itself are 2-dimensional matrices. For my work, I'm required to create another list which has data frames which are a subset of the data frames from the original list.
Eg: List l1 has two data frames D1 and D2, having 10 and 12 different columns of data respectively. Now I want to create a new list l2 which also has two data frames but these data frames are columns picked out from the earlier data frames D1 and D2. Please consider that the position of the same column in D1 and D2 could be different, therefore I would have to access it through column name and not index
Could someone please suggest how I could go about implementing this?
)`. If you want more specific code, you need to provide a more specific description of D3 and D4 than "basically subsets of D1 and D2".
– Gregor Thomas Nov 22 '17 at 20:32