Skip to content
Prev 305587 / 398506 Next

two questions about character manipulation

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.