Try this.

A <- get(x[1])

Jean


Sri krishna Devarayalu Balanagu <balanagudevarayulu@gvkbio.com> wrote on 
09/17/2012 07:13:51 AM:
> 
> a=c(1,2,3)
> b=c(23, 24, 25)
> x=c("a", "b")
> #if (length(x[1]) == 0) {cat("x[1] is having 3 elements")}
> 
> Suppose I want to send the vector a into the Object A,
> um getting only "a" as the ouput for Object A but not getting 
> required output as the vector with the elements 1, 2, 3 with  the 
> following code
> 
> A<- x[1]
> 
> How to code it?
> Can anyone help?

	[[alternative HTML version deleted]]


