[R] 'programatically' list or call objects for use in a function?

2010-09-11 Thread Karl Brand
Esteemed R users and developers, How does one 'programatically' list or call objects for use in a function? For example, i thought i could do something better than this: save(A.cwb, B.cwb, C.cwb, D.cwb, E.cwb, F.cwb, file=afile.RData) with something like these- prfxs - c(A, B, C, D, E, F)

Re: [R] 'programatically' list or call objects for use in a function?

2010-09-11 Thread Duncan Murdoch
On 11/09/2010 8:00 AM, Karl Brand wrote: Esteemed R users and developers, How does one 'programatically' list or call objects for use in a function? It depends on the function. For example, i thought i could do something better than this: save(A.cwb, B.cwb, C.cwb, D.cwb, E.cwb, F.cwb,

Re: [R] 'programatically' list or call objects for use in a function?

2010-09-11 Thread Karl Brand
Cheers Duncan, for your FAST answers and patience. (fast patience?!) I was close. But closer reading of ?save would also have worked i see now :$. LETTERS[] = :) thanks again, Karl On 9/11/2010 2:10 PM, Duncan Murdoch wrote: On 11/09/2010 8:00 AM, Karl Brand wrote: Esteemed R users and