Dear group, Here is my environment :
> ls() [1] "l" "PLglobal" "Pos100415" "Pos100416" "Pos100419" "Pos100420" "position" "select" "Trad100415" "Trad100416" "Trad100419" "Trad100420" "trade" "y" With objects : > l [1] "100415" "100416" "100419" "100420" "100421" "100422" "100423" "100426" "100427" "100428" "100429" "100430" "100503" "100504" "100505" "100506" "100507" "100510" "100511" "100512" "100513" > select #is a selection of elements of object "l" [1] "100415" "100416" "100419" "100420" "PLglobal", "position", "trade" are all functions Pos100415,Pos100416,Trad100415...are all data frames I have one dataframe each day. For example, Pos100415 is "Pos" for day 15/04/2010. Now I need to access data.frames in my environment for a function, according to this following scheme: Pos100415 and Pos100416 (i.e. Pos(day1) and Pos(day2)), and Trad100416 (i.e. trad(day2)). I have absolutely no idea how to deal with this indexing problem in a generic manner. Note that all numbers will belong to the list "select". Not sur to be clear enough, but any help would be appreciated. TY ______________________________________________ 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.