Re: [R] cbind objects using character vectors

2009-09-02 Thread jonas garcia
Thanks Erik and Henrique, That's what I was after. Jonas On Tue, Sep 1, 2009 at 8:08 PM, Henrique Dallazuanna wrote: > Try this: > > > sapply(vec.names, get) > > But for this example, you don't need for, try: > > > dat - 1 > > On Tue, Sep 1, 2009 at 2:52 PM, jonas garcia < > garcia.jona...@g

Re: [R] cbind objects using character vectors

2009-09-01 Thread Henrique Dallazuanna
Try this: > sapply(vec.names, get) But for this example, you don't need for, try: > dat - 1 On Tue, Sep 1, 2009 at 2:52 PM, jonas garcia wrote: > Dear list, > > > > I have a character vector such vec.names<- c("a", "b") > > It happens that I have also two R objects called "a" and "b" that I wo

Re: [R] cbind objects using character vectors

2009-09-01 Thread Erik Iverson
-project.org Subject: [R] cbind objects using character vectors Dear list, I have a character vector such vec.names<- c("a", "b") It happens that I have also two R objects called "a" and "b" that I would like to merge. Is it possible to do something like cbind

[R] cbind objects using character vectors

2009-09-01 Thread jonas garcia
Dear list, I have a character vector such vec.names<- c("a", "b") It happens that I have also two R objects called "a" and "b" that I would like to merge. Is it possible to do something like cbind(vec.names[1], vec.names[2]) ending up with the same result as cbind(a,b) Bellow is a reproduci