Re: [R] Treating a vector of characters as object names to create list

2016-09-04 Thread Bert Gunter
Thank you, Dénes. Better yet. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Sep 4, 2016 at 4:13 PM, Dénes Tóth wrote: >

Re: [R] Treating a vector of characters as object names to create list

2016-09-04 Thread Dénes Tóth
On 09/05/2016 12:07 AM, Bert Gunter wrote: Time for an R tutorial or two to learn how to use the "apply" family in R. I think what you want is: merged_list <- lapply(merging, get) Or even: named_merged_list <- mget(merging) Anyway, probably you could arrive to a list of parameters

Re: [R] Treating a vector of characters as object names to create list

2016-09-04 Thread Jim Lemon
Hi Ryan, How about: names(merged.parameters)<-merging Jim On Mon, Sep 5, 2016 at 7:57 AM, Ryan Utz wrote: > Hello, > > I have a vector of characters that I know will be object names and I'd like > to treat this vector as a series of names to create a list. But, for the >

Re: [R] Treating a vector of characters as object names to create list

2016-09-04 Thread Bert Gunter
Time for an R tutorial or two to learn how to use the "apply" family in R. I think what you want is: merged_list <- lapply(merging, get) -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in

[R] Treating a vector of characters as object names to create list

2016-09-04 Thread Ryan Utz
Hello, I have a vector of characters that I know will be object names and I'd like to treat this vector as a series of names to create a list. But, for the life of me, I cannot figure out how to treat a vector of characters as a vector of object names when creating a list. For example, this does