[R] two questions about character manipulation

Özgür Asar oasar at metu.edu.tr
Sun Sep 16 16:35:14 CEST 2012


Dear all,

I want to manipulate a character string such as 

ex<-"cbind(data$response1,data$response2)"

in R in two ways:

1) extracting the "response1" portion of ex 
2) replacing "$" with "."

I am wondering that is it possible efficiently doing these in R?

Best

Ozgur



--
View this message in context: http://r.789695.n4.nabble.com/two-questions-about-character-manipulation-tp4643292.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list