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
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
Not tested:
Instead of:
cbind(vec.names[1], vec.names[2])
cbind(get(vec.names[1]), get(vec.names[2]))
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of jonas garcia
Sent: Tuesday, September 01, 2009 12:53 PM
To: r-help@r-project.or
3 matches
Mail list logo