Re: [R] I want to send the vector a into the Object A.......

2012-09-18 Thread arun
3. I am trying with following code. But getting error paste(x[1], ".Arms", sep="") <- c(1,2,3) Error: could not find function "paste<-" Can you pls help From: Jean V Adams [mailto:jvad...@usgs.gov] Sent: Monday, September 17, 2012 10:24 PM To: Sri krishna Devaraya

Re: [R] I want to send the vector a into the Object A.......

2012-09-18 Thread Berend Hasselman
On 18-09-2012, at 11:08, Sri krishna Devarayalu Balanagu wrote: > Thank you very much > I am having one more doubt. Please clarify it, if possible. > > x = c("a", "b", "c", "d", "e") > suppose I want to create an object named "a.Arms" with the elements 1,2,3. I > am trying with following code.

Re: [R] I want to send the vector a into the Object A.......

2012-09-18 Thread Sri krishna Devarayalu Balanagu
r paste(x[1], ".Arms", sep="") <- c(1,2,3) Error: could not find function "paste<-" Can you pls help From: Jean V Adams [mailto:jvad...@usgs.gov] Sent: Monday, September 17, 2012 10:24 PM To: Sri krishna Devarayalu Balanagu Cc: r-help@r-project.org Subject: Re:

Re: [R] I want to send the vector a into the Object A.......

2012-09-17 Thread arun
Hi,After second thought, May be this:get(A) [1] 1 2 3 A.K. - Original Message - From: Sri krishna Devarayalu Balanagu To: "r-help@r-project.org" Cc: Sent: Monday, September 17, 2012 8:13 AM Subject: [R] I want to send the vector a into the Object A... a=c(1,2,3) b=c(23,

Re: [R] I want to send the vector a into the Object A.......

2012-09-17 Thread Jean V Adams
Try this. A <- get(x[1]) Jean Sri krishna Devarayalu Balanagu 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 th

Re: [R] I want to send the vector a into the Object A.......

2012-09-17 Thread Heramb Gadgil
A<- get("a") This will work fine Best, Heramb On Mon, Sep 17, 2012 at 5:43 PM, Sri krishna Devarayalu Balanagu < balanagudevaray...@gvkbio.com> wrote: > 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 vect

[R] I want to send the vector a into the Object A.......

2012-09-17 Thread Sri krishna Devarayalu Balanagu
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