Here I have a variable called "Variable_1".

 

Variable_1 <- "MyDataFrame"

 

Here I want to create another variable, by assigning the value of
"Variable_1" .

So, it will come like,

 

Assign(Variable_1,data.frame(read.csv("c:\\Mydata.csv")))   --->[this
was the 1st requirement, now I got the solution]

 

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")))

 

and I tried this too

 

rbind(as.name(Variable_1), data.frame(read.csv("c:\\My2ndData.csv")))

 

and I getting the error like

 

Error: " object of type 'symbol' is not subsettable "

 

 

Here I am getting stuck !

 

 

- Thanks

Antony

 

 

From: jholtman [via R] [mailto:ml-node+s789695n4641417h65@n4.nabble.com]

Sent: Monday, August 27, 2012 7:56 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: String Handling() for Split a word by a letter

 

Is this what you want: 


> a<- "12345_mydata" 
> sub("_.*", "", a) 
[1] "12345" 


On Mon, Aug 27, 2012 at 5:29 AM, Rantony <[hidden email]> wrote: 


> Hi, 
> 
> here im unable to run a string handle function called unpaste(). 
> 
> for eg:- a<- "12345_mydata" 
> Actually my requirement what is i need to get , only 12345.  Means
that , i 
> need the all letter as a word which is before of  first  " _ " -
symbol of 
> "a". i tried to do with unpaste, it says function not found.  After
that i 
> tried with "strsplit() ". it ran, but again i need to write another
method 
> to get again after spliting. 
> 
> Any other good method is there for this requirement ? 
> 
> - Thanks 
> Antony. 
> 
> 
> 
> -- 
> View this message in context: 
>
http://r.789695.n4.nabble.com/String-Handling-for-Split-a-word-by-a-lett
er-tp4641397.html
> Sent from the R help mailing list archive at Nabble.com. 
> 
> ______________________________________________ 
> [hidden email] mailing list 
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code. 
> 




-- 
Jim Holtman 
Data Munger Guru 

What is the problem that you are trying to solve? 
Tell me what you want to do, not how you want to do it. 

        [[alternative HTML version deleted]] 

______________________________________________ 
[hidden email] mailing list 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code. 



________________________________

If you reply to this email, your message will be added to the discussion
below:

http://r.789695.n4.nabble.com/String-Handling-for-Split-a-word-by-a-lett
er-tp4641397p4641417.html 

To unsubscribe from String Handling() for Split a word by a letter,
click here
<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscrib
e_by_code&node=4641397&code=YW50b255LmFra2FyYUBnZS5jb218NDY0MTM5N3wxNTUx
OTQzMDI5> .
NAML
<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_view
er&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.Bas
icNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.tem
plate.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml
-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemai
l.naml>  





--
View this message in context: http://r.789695.n4.nabble.com/String-Handling-for-Split-a-word-by-a-letter-tp4641397p4641534.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]


