Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread arun
ginal Message - From: S Ellison To: Jessica Streicher ; "Akkara, Antony (GE Energy, Non-GE)" Cc: r-help Sent: Tuesday, August 28, 2012 11:57 AM Subject: Re: [R] Create and Assign value into a variable from Another variable > > Now, " MyDataFrame " is a variable and contain

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Greg Snow
Others have mentioned assign and get, but generally when the answer to a question is "assign" it means that you are asking the wrong question (see fortune(236)). This is actually FAQ 7.21, the most useful part of the answer in the FAQ is the last few lines. If you tell us more about what you are

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread S Ellison
> > Now, " MyDataFrame " is a variable and containing some > values in that. > > And Now, the problem what is I need to do "rbind" into the > variable " > > MyDataFrame ". > > > > I tried to do, > > rbind(as.character(Variable_1), > > data.frame(read.csv("c:\\My2ndData.csv"))) > > The above

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Jessica Streicher
gt; > > - Thanks > Antony > > -Original Message- > From: Rui Barradas [mailto:ruipbarra...@sapo.pt] > Sent: Tuesday, August 28, 2012 3:48 PM > To: Akkara, Antony (GE Energy, Non-GE) > Cc: r-help > Subject: Re: [R] Create and Assign value into a variab

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Jessica Streicher
This? > x<-"y" > assign(x,1) > y [1] 1 On 28.08.2012, at 10:16, Bert Gunter wrote: > Post a small reproducible example to clarify what you want to do. > > -- Bert > > On Mon, Aug 27, 2012 at 11:48 PM, Rantony wrote: >> Hi, >> >> Here i have a variable named "MyVariable" containing particula

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Akkara, Antony (GE Energy, Non-GE)
read.csv("c:\\My2ndData.csv"))) Here I am getting stuck ! - Thanks Antony -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: Tuesday, August 28, 2012 3:48 PM To: Akkara, Antony (GE Energy, Non-GE) Cc: r-help Subject: Re: [R] Create and Assign value into

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Rui Barradas
Hello, Try the following, supposing that 1:5 is the value you want to assign. ?assign MyVariable <- "UnitNo" assign(MyVariable, 1:5) UnitNo Hope this helps, Rui Barradas Em 28-08-2012 07:48, Rantony escreveu: Hi, Here i have a variable named "MyVariable" containing particular name For eg:-

Re: [R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Bert Gunter
Post a small reproducible example to clarify what you want to do. -- Bert On Mon, Aug 27, 2012 at 11:48 PM, Rantony wrote: > Hi, > > Here i have a variable named "MyVariable" containing particular name > > For eg:- > MyVariable <- "UnitNo" > > Here my requirement is, i need to get "UnitNo" as an

[R] Create and Assign value into a variable from Another variable

2012-08-28 Thread Rantony
Hi, Here i have a variable named "MyVariable" containing particular name For eg:- MyVariable <- "UnitNo" Here my requirement is, i need to get "UnitNo" as another variable by reading "MyVariable" i need "UnitNo" as variable name and need to assign some value into that. i had tried with as.n